computeRule method.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | pointsAndWeights
List of points and weights, indexed by the order of the rule. |
| private final Map | pointsAndWeightsDouble
Cache for double-precision rules. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected abstract Pair | Returns: the computed rule.Order of the rule to be computed. numberOfPoints)Computes the rule for the given order. |
| private static < Type of the number used to represent the points and
weights of the quadrature rules. T extends Number> Pair | Returns: points and weights asdoubles.Points and weights. rule)Converts the from the actual |
| public Pair | Returns: a copy of the integration rule.Number of integration points. numberOfPoints)Gets a copy of the quadrature rule with the given number of integration points. |
| protected synchronized Pair | Returns: the points and weights corresponding to the given order.Order of the rule to be retrieved. numberOfPoints)Gets a rule. |
| pointsAndWeights | back to summary |
|---|---|
| private final Map<Integer, Pair<T[], T[]>> pointsAndWeights List of points and weights, indexed by the order of the rule. | |
| pointsAndWeightsDouble | back to summary |
|---|---|
| private final Map<Integer, Pair<double[], double[]>> pointsAndWeightsDouble Cache for double-precision rules. | |
| BaseRuleFactory | back to summary |
|---|---|
| public BaseRuleFactory() | |
| addRule | back to summary |
|---|---|
| protected void addRule(Pair<T[], T[]> rule) throws DimensionMismatchException Stores a rule.
| |
| computeRule | back to summary |
|---|---|
| protected abstract Pair Computes the rule for the given order.
| |
| convertToDouble | back to summary |
|---|---|
| private static <T extends Number> Pair Converts the from the actual | |
| getRule | back to summary |
|---|---|
| public Pair Gets a copy of the quadrature rule with the given number of integration points.
| |
| getRuleInternal | back to summary |
|---|---|
| protected synchronized Pair Gets a rule. Synchronization ensures that rules will be computed and added to the cache at most once. The returned rule is a reference into the cache.
| |