org.apache.commons.math3.analysis.integration.gauss
public class LegendreHighPrecisionRuleFactory extends BaseRuleFactory<BigDecimal>
Modifier and Type | Field and Description |
---|---|
private MathContext |
mContext
Settings for enhanced precision computations.
|
private BigDecimal |
minusOne
The number
-1 . |
private BigDecimal |
oneHalf
The number
0.5 . |
private BigDecimal |
two
The number
2 . |
Constructor and Description |
---|
LegendreHighPrecisionRuleFactory()
Default precision is
DECIMAL128 . |
LegendreHighPrecisionRuleFactory(MathContext mContext) |
Modifier and Type | Method and Description |
---|---|
protected Pair<BigDecimal[],BigDecimal[]> |
computeRule(int numberOfPoints)
Computes the rule for the given order.
|
addRule, getRule, getRuleInternal
private final MathContext mContext
private final BigDecimal two
2
.private final BigDecimal minusOne
-1
.private final BigDecimal oneHalf
0.5
.public LegendreHighPrecisionRuleFactory()
DECIMAL128
.public LegendreHighPrecisionRuleFactory(MathContext mContext)
mContext
- Precision setting for computing the quadrature rules.protected Pair<BigDecimal[],BigDecimal[]> computeRule(int numberOfPoints)
computeRule
in class BaseRuleFactory<BigDecimal>
numberOfPoints
- Order of the rule to be computed.NotStrictlyPositiveException
- if numberOfPoints < 1
.Copyright (c) 2003-2013 Apache Software Foundation