jsat.math.integration
Class AdaptiveSimpson
- java.lang.Object
-
- jsat.math.integration.AdaptiveSimpson
-
public class AdaptiveSimpson extends java.lang.ObjectThis class provides an implementation of the Adaptive Simpson method for numerically computing an integral
-
-
Constructor Summary
Constructors Constructor and Description AdaptiveSimpson()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubleintegrate(Function1D f, double tol, double a, double b)Numerically computes the integral of the given functionstatic doubleintegrate(Function1D f, double tol, double a, double b, int maxDepth)Numerically computes the integral of the given function
-
-
-
Method Detail
-
integrate
public static double integrate(Function1D f, double tol, double a, double b)
Numerically computes the integral of the given function- Parameters:
f- the function to integratetol- the precision for the desired resulta- the lower limit of the integralb- the upper limit of the integral- Returns:
- an approximation of the integral of ∫abf(x) , dx
-
integrate
public static double integrate(Function1D f, double tol, double a, double b, int maxDepth)
Numerically computes the integral of the given function- Parameters:
f- the function to integratetol- the precision for the desired resulta- the lower limit of the integralb- the upper limit of the integralmaxDepth- the maximum recursion depth- Returns:
- an approximation of the integral of ∫abf(x) , dx
-
-
DataMelt 3.0 © DataMelt by jWork.ORG