Package org.jquantlib.math.integrals

Examples of org.jquantlib.math.integrals.GaussKronrodAdaptive


    @Test
    public void testGaussKronrodAdaptive() {
        QL.info("Testing adaptive Gauss-Kronrod integration...");
        final int maxEvaluations = 1000;
        testSeveral(new GaussKronrodAdaptive(tolerance, maxEvaluations));
    }
View Full Code Here


          QL.require(!x.empty() , "can not handle given x here"); // QA:[RG]::verified // TODO: message

          double tmp=0.0;
          final Var_Helper helper = new Var_Helper(this, i, j);

          final GaussKronrodAdaptive integrator = new GaussKronrodAdaptive(1e-10, 10000);
          for (int k=0; k<64; ++k) {
            tmp+=integrator.op(helper, k*t/64., (k+1)*t/64.);
        }
          return tmp;
      }
View Full Code Here

        final Matrix tmp = new Matrix(size_, size_);
        for (int i = 0; i < size_; ++i) {
            for (int j = 0; j <= i; ++j) {
                final Var_Helper helper = new Var_Helper(this, i, j);
                final GaussKronrodAdaptive integrator = new GaussKronrodAdaptive(1e-10, 10000);
                for(int k = 0; k<64; ++k) {
                    tmp.set(i, j, tmp.get(i, j)+integrator.op(helper, k*t/64.0,(k+1)*t/64.0));
                }
                tmp.set(j,i, tmp.get(i, j));
            }
        }

View Full Code Here

        final Matrix tmp = new Matrix(size_, size_);
        for (int i = 0; i < size_; ++i) {
            for (int j = 0; j <= i; ++j) {
                final Var_Helper helper = new Var_Helper(this, i, j);
                final GaussKronrodAdaptive integrator = new GaussKronrodAdaptive(1e-10, 10000);
                for(int k = 0; k<64; ++k) {
                    tmp.set(i, j, tmp.get(i, j)+integrator.op(helper, k*t/64.0,(k+1)*t/64.0));
                }
                tmp.set(j,i, tmp.get(i, j));
            }
        }

View Full Code Here

          QL.require(!x.empty() , "can not handle given x here"); // TODO: message

          double tmp=0.0;
          final Var_Helper helper = new Var_Helper(this, i, j);

          final GaussKronrodAdaptive integrator = new GaussKronrodAdaptive(1e-10, 10000);
          for (int k=0; k<64; ++k) {
            tmp+=integrator.op(helper, k*t/64., (k+1)*t/64.);
        }
          return tmp;
      }
View Full Code Here

    @Test
    public void testGaussKronrodAdaptive() {
        QL.info("Testing adaptive Gauss-Kronrod integration...");
        final int maxEvaluations = 1000;
        testSeveral(new GaussKronrodAdaptive(tolerance, maxEvaluations));
    }
View Full Code Here

TOP

Related Classes of org.jquantlib.math.integrals.GaussKronrodAdaptive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.