jsat.math.integration
Class Trapezoidal
- java.lang.Object
-
- jsat.math.integration.Trapezoidal
-
public class Trapezoidal extends java.lang.ObjectThis class provides an implementation of the Trapezoidal method for numerically computing an integral
-
-
Constructor Summary
Constructors Constructor and Description Trapezoidal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubletrapz(Function1D f, double a, double b, int N)Numerically computes the integral of the given function
-
-
-
Method Detail
-
trapz
public static double trapz(Function1D f, double a, double b, int N)
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 integralN- the number of points in the integral to take, must be ≥ 2.- Returns:
- an approximation of the integral of ∫abf(x) , dx
-
-
DataMelt 3.0 © DataMelt by jWork.ORG