public class RungeKuttaIntegrator1D extends Integrator1D<Double,Double>
| Constructor and Description |
|---|
RungeKuttaIntegrator1D() |
RungeKuttaIntegrator1D(double tol) |
RungeKuttaIntegrator1D(double atol,
double rtol) |
RungeKuttaIntegrator1D(double absTol,
double relTol,
int minSteps)
Constructor from absolute and relative tolerance and minimal number of steps.
|
RungeKuttaIntegrator1D(double tol,
int minSteps) |
RungeKuttaIntegrator1D(int minSteps) |
| Modifier and Type | Method and Description |
|---|---|
double |
getRelativeTolerance() |
Double |
integrate(Function<Double,Double> f,
Double lower,
Double upper)
1-D integration method.
|
integratepublic RungeKuttaIntegrator1D(double absTol,
double relTol,
int minSteps)
The adaptable integration process stops when the difference between 2 steps is below the absolute tolerance plus the relative tolerance multiplied by the value.
absTol - the absolute tolerancerelTol - the relative toleranceminSteps - the minimal number of stepspublic RungeKuttaIntegrator1D(double tol,
int minSteps)
public RungeKuttaIntegrator1D(double atol,
double rtol)
public RungeKuttaIntegrator1D(double tol)
public RungeKuttaIntegrator1D(int minSteps)
public RungeKuttaIntegrator1D()
public double getRelativeTolerance()
public Double integrate(Function<Double,Double> f, Double lower, Double upper)
Integrator1Dintegrate in class Integrator1D<Double,Double>f - The function to integrate, not nulllower - The lower bound, not nullupper - The upper bound, not nullCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.