T - Type of the number used to represent the points and weights of
the quadrature rules.HermiteRuleFactory, LaguerreRuleFactory, LegendreHighPrecisionRuleFactory, LegendreRuleFactorypublic abstract class BaseRuleFactory<T extends Number> extends Object
computeRule method.| Constructor | Description |
|---|---|
BaseRuleFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addRule(Pair<T[],T[]> rule) |
Stores a rule.
|
protected abstract Pair<T[],T[]> |
computeRule(int numberOfPoints) |
Computes the rule for the given order.
|
Pair<double[],double[]> |
getRule(int numberOfPoints) |
Gets a copy of the quadrature rule with the given number of integration
points.
|
protected Pair<T[],T[]> |
getRuleInternal(int numberOfPoints) |
Gets a rule.
|
public Pair<double[],double[]> getRule(int numberOfPoints) throws MathIllegalArgumentException
numberOfPoints - Number of integration points.MathIllegalArgumentException - if numberOfPoints < 1.MathIllegalArgumentException - if the elements of the rule pair do not
have the same length.protected Pair<T[],T[]> getRuleInternal(int numberOfPoints) throws MathIllegalArgumentException
numberOfPoints - Order of the rule to be retrieved.MathIllegalArgumentException - if the elements of the rule pair do not
have the same length.protected void addRule(Pair<T[],T[]> rule) throws MathIllegalArgumentException
rule - Rule to be stored.MathIllegalArgumentException - if the elements of the pair do not
have the same length.protected abstract Pair<T[],T[]> computeRule(int numberOfPoints) throws MathIllegalArgumentException
numberOfPoints - Order of the rule to be computed.MathIllegalArgumentException - if the elements of the pair do not
have the same length.Copyright © 2016–2018 Hipparchus.org. All rights reserved.