jsat.math.integration
Class Romberg
- java.lang.Object
-
- jsat.math.integration.Romberg
-
public class Romberg extends java.lang.ObjectThis class provides an implementation of the Romberg method for numerically computing an integral
-
-
Constructor Summary
Constructors Constructor and Description Romberg()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubleromb(Function1D f, double a, double b)Numerically computes the integral of the given functionstatic doubleromb(Function1D f, double a, double b, int max)Numerically computes the integral of the given function
-
-
-
Method Detail
-
romb
public static double romb(Function1D f, double a, double b)
Numerically computes the integral of the given function- Parameters:
f- the function to integratea- the lower limit of the integralb- the upper limit of the integral- Returns:
- an approximation of the integral of ∫abf(x) , dx
-
romb
public static double romb(Function1D f, double a, double b, int max)
Numerically computes the integral of the given function- Parameters:
f- the function to integratea- the lower limit of the integralb- the upper limit of the integralmax- the maximum number of extrapolation steps to perform. ∫abf(x) , dx
-
-
DataMelt 3.0 © DataMelt by jWork.ORG