public class LegendreHighPrecisionRuleFactory extends BaseRuleFactory<java.math.BigDecimal>
| Modifier and Type | Field and Description |
|---|---|
private java.math.MathContext |
mContext
Settings for enhanced precision computations.
|
private java.math.BigDecimal |
minusOne
The number
-1. |
private java.math.BigDecimal |
oneHalf
The number
0.5. |
private java.math.BigDecimal |
two
The number
2. |
| Constructor and Description |
|---|
LegendreHighPrecisionRuleFactory()
Default precision is
DECIMAL128. |
LegendreHighPrecisionRuleFactory(java.math.MathContext mContext) |
| Modifier and Type | Method and Description |
|---|---|
protected Pair<java.math.BigDecimal[],java.math.BigDecimal[]> |
computeRule(int numberOfPoints)
Computes the rule for the given order.
|
addRule, getRule, getRuleInternalprivate final java.math.MathContext mContext
private final java.math.BigDecimal two
2.private final java.math.BigDecimal minusOne
-1.private final java.math.BigDecimal oneHalf
0.5.public LegendreHighPrecisionRuleFactory()
DECIMAL128.public LegendreHighPrecisionRuleFactory(java.math.MathContext mContext)
mContext - Precision setting for computing the quadrature rules.protected Pair<java.math.BigDecimal[],java.math.BigDecimal[]> computeRule(int numberOfPoints) throws DimensionMismatchException
computeRule in class BaseRuleFactory<java.math.BigDecimal>numberOfPoints - Order of the rule to be computed.DimensionMismatchException - if the elements of the pair do not
have the same length.Copyright (c) 2003-2015 Apache Software Foundation