Class FieldGaussIntegratorFactory<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.hipparchus.analysis.integration.gauss.FieldGaussIntegratorFactory<T>
-
- Type Parameters:
T- Type of the field elements.
public class FieldGaussIntegratorFactory<T extends CalculusFieldElement<T>> extends Object
Class that provides different ways to compute the nodes and weights to be used by theGaussian integration rule.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description FieldGaussIntegratorFactory(Field<T> field)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SymmetricFieldGaussIntegrator<T>hermite(int numberOfPoints)Creates a Gauss-Hermite integrator of the given order.FieldGaussIntegrator<T>laguerre(int numberOfPoints)Creates a Gauss-Laguerre integrator of the given order.FieldGaussIntegrator<T>legendre(int numberOfPoints)Creates a Gauss-Legendre integrator of the given order.FieldGaussIntegrator<T>legendre(int numberOfPoints, T lowerBound, T upperBound)Creates a Gauss-Legendre integrator of the given order.
-
-
-
Method Detail
-
laguerre
public FieldGaussIntegrator<T> laguerre(int numberOfPoints)
Creates a Gauss-Laguerre integrator of the given order. The call to theintegratemethod will perform an integration on the interval \([0, +\infty)\): the computed value is the improper integral of \(e^{-x} f(x)\) where \(f(x)\) is the function passed to theintegratemethod.- Parameters:
numberOfPoints- Order of the integration rule.- Returns:
- a Gauss-Legendre integrator.
-
legendre
public FieldGaussIntegrator<T> legendre(int numberOfPoints)
Creates a Gauss-Legendre integrator of the given order. The call to theintegratemethod will perform an integration on the natural interval[-1 , 1].- Parameters:
numberOfPoints- Order of the integration rule.- Returns:
- a Gauss-Legendre integrator.
-
legendre
public FieldGaussIntegrator<T> legendre(int numberOfPoints, T lowerBound, T upperBound) throws MathIllegalArgumentException
Creates a Gauss-Legendre integrator of the given order. The call to theintegratemethod will perform an integration on the given interval.- Parameters:
numberOfPoints- Order of the integration rule.lowerBound- Lower bound of the integration interval.upperBound- Upper bound of the integration interval.- Returns:
- a Gauss-Legendre integrator.
- Throws:
MathIllegalArgumentException- if number of points is not positive
-
hermite
public SymmetricFieldGaussIntegrator<T> hermite(int numberOfPoints)
Creates a Gauss-Hermite integrator of the given order. The call to theintegratemethod will perform a weighted integration on the interval \([-\infty, +\infty]\): the computed value is the improper integral of \(e^{-x^2}f(x)\) where \(f(x)\) is the function passed to theintegratemethod.- Parameters:
numberOfPoints- Order of the integration rule.- Returns:
- a Gauss-Hermite integrator.
-
-