Interface RuleFactory
- All Known Implementing Classes:
AbstractRuleFactory
,ConvertingRuleFactory
,HermiteRuleFactory
,LaguerreRuleFactory
,LegendreRuleFactory
public interface RuleFactory
Interface for rules that determines the integration nodes and their weights.
- Since:
- 2.0
-
Method Summary
-
Method Details
-
getRule
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.
-