Class ConvertingRuleFactory<T extends FieldElement<T>>
java.lang.Object
org.hipparchus.analysis.integration.gauss.AbstractRuleFactory
org.hipparchus.analysis.integration.gauss.ConvertingRuleFactory<T>
- Type Parameters:
T
- Type of the number used to represent the points and weights of the quadrature rules.
- All Implemented Interfaces:
RuleFactory
- Since:
- 2.0
-
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
-
ConvertingRuleFactory
Simple constructor.- Parameters:
fieldFactory
- field-based factory to convert
-
-
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.
-