Class HermiteRuleFactory
java.lang.Object
org.hipparchus.analysis.integration.gauss.AbstractRuleFactory
org.hipparchus.analysis.integration.gauss.HermiteRuleFactory
- All Implemented Interfaces:
RuleFactory
Factory that creates a
Gauss-type quadrature rule using Hermite polynomials
of the first kind.
Such a quadrature rule allows the calculation of improper integrals
of a function
\(f(x) e^{-x^2}\)
Recurrence relation and weights computation follow Abramowitz and Stegun, 1964.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Pair<double[],
double[]> computeRule
(int numberOfPoints) Computes the rule for the given order.Methods inherited from class org.hipparchus.analysis.integration.gauss.AbstractRuleFactory
enforceSymmetry, findRoots, getRule
-
Constructor Details
-
HermiteRuleFactory
public HermiteRuleFactory()Empty constructor.This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
- Since:
- 3.0
-
-
Method Details
-
computeRule
protected Pair<double[],double[]> computeRule(int numberOfPoints) throws MathIllegalArgumentException Computes the rule for the given order.- Specified by:
computeRule
in classAbstractRuleFactory
- Parameters:
numberOfPoints
- Order of the rule to be computed.- Returns:
- the computed rule.
- Throws:
MathIllegalArgumentException
- if the elements of the pair do not have the same length.
-