Interface FieldRuleFactory<T extends FieldElement<T>>
-
- Type Parameters:
T
- Type of the number used to represent the points and weights of the quadrature rules.
- All Known Implementing Classes:
FieldAbstractRuleFactory
,FieldHermiteRuleFactory
,FieldLaguerreRuleFactory
,FieldLegendreRuleFactory
public interface FieldRuleFactory<T extends FieldElement<T>>
Interface for rules that determines the integration nodes and their weights.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pair<T[],T[]>
getRule(int numberOfPoints)
Gets a copy of the quadrature rule with the given number of integration points.
-
-
-
Method Detail
-
getRule
Pair<T[],T[]> getRule(int numberOfPoints) throws MathIllegalArgumentException
Gets a copy of the quadrature rule with the given number of integration points. The number of points is arbitrarily limited to 1000. It prevents resources exhaustion. In practice the number of points is often much lower.- Parameters:
numberOfPoints
- Number of integration points.- Returns:
- a copy of the integration rule.
- Throws:
MathIllegalArgumentException
- ifnumberOfPoints < 1
.MathIllegalArgumentException
- ifnumberOfPoints > 1000
.MathIllegalArgumentException
- if the elements of the rule pair do not have the same length.
-
-