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
public class ConvertingRuleFactory<T extends FieldElement<T>> extends AbstractRuleFactory
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ConvertingRuleFactory(FieldRuleFactory<T> fieldFactory)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
ConvertingRuleFactory
public ConvertingRuleFactory(FieldRuleFactory<T> fieldFactory)
Simple constructor.- Parameters:
fieldFactory
- field-based factory to convert
-
-
Method Detail
-
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.
-
-