org.apache.commons.math3.analysis.integration.gauss
Class BaseRuleFactory<T extends java.lang.Number>
- java.lang.Object
-
- org.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory<T>
-
- Type Parameters:
T- Type of the number used to represent the points and weights of the quadrature rules.
- Direct Known Subclasses:
- HermiteRuleFactory, LegendreHighPrecisionRuleFactory, LegendreRuleFactory
public abstract class BaseRuleFactory<T extends java.lang.Number> extends java.lang.ObjectBase class for rules that determines the integration nodes and their weights. Subclasses must implement thecomputeRulemethod.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor and Description BaseRuleFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Pair<double[],double[]>getRule(int numberOfPoints)Gets a copy of the quadrature rule with the given number of integration points.
-
-
-
Method Detail
-
getRule
public Pair<double[],double[]> getRule(int numberOfPoints) throws NotStrictlyPositiveException, DimensionMismatchException
Gets a copy of the quadrature rule with the given number of integration points.- Parameters:
numberOfPoints- Number of integration points.- Returns:
- a copy of the integration rule.
- Throws:
NotStrictlyPositiveException- ifnumberOfPoints < 1.DimensionMismatchException- if the elements of the rule pair do not have the same length.
-
-
DMelt 3.0 © DataMelt by jWork.ORG