T
- Type of the number used to represent the points and weights of
the quadrature rules.public abstract class BaseRuleFactory<T extends Number> extends Object
computeRule
method.Constructor and Description |
---|
BaseRuleFactory() |
Modifier and Type | Method and 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)
numberOfPoints
- Number of integration points.NotStrictlyPositiveException
- if numberOfPoints < 1
.protected Pair<T[],T[]> getRuleInternal(int numberOfPoints)
numberOfPoints
- Order of the rule to be retrieved.NotStrictlyPositiveException
- if numberOfPoints < 1
.protected void addRule(Pair<T[],T[]> rule)
rule
- Rule to be stored.DimensionMismatchException
- if the elements of the pair do not
have the same length.Copyright © 2021 CNES. All rights reserved.