Examples of GaussKronrodAdaptive


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

Examples of org.jquantlib.math.integrals.GaussKronrodAdaptive

          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

Examples of org.jquantlib.math.integrals.GaussKronrodAdaptive

        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

Examples of org.jquantlib.math.integrals.GaussKronrodAdaptive

        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

Examples of org.jquantlib.math.integrals.GaussKronrodAdaptive

          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

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
TOP
Copyright © 2018 www.massapi.com. 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.