|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory<BigDecimal>
org.apache.commons.math3.analysis.integration.gauss.LegendreHighPrecisionRuleFactory
public class LegendreHighPrecisionRuleFactory
Factory that creates Gauss-type quadrature rule using Legendre polynomials.
In this implementation, the lower and upper bounds of the natural interval
of integration are -1 and 1, respectively.
The Legendre polynomials are evaluated using the recurrence relation
presented in .
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
LegendreHighPrecisionRuleFactory()
Default precision is DECIMAL128. |
|
LegendreHighPrecisionRuleFactory(MathContext mContext)
|
|
| Method Summary | |
|---|---|
protected Pair<BigDecimal[],BigDecimal[]> |
computeRule(int numberOfPoints)
Computes the rule for the given order. |
| Methods inherited from class org.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory |
|---|
addRule, getRule, getRuleInternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final MathContext mContext
private final BigDecimal two
2.
private final BigDecimal minusOne
-1.
private final BigDecimal oneHalf
0.5.
| Constructor Detail |
|---|
public LegendreHighPrecisionRuleFactory()
DECIMAL128.
public LegendreHighPrecisionRuleFactory(MathContext mContext)
mContext - Precision setting for computing the quadrature rules.| Method Detail |
|---|
protected Pair<BigDecimal[],BigDecimal[]> computeRule(int numberOfPoints)
throws DimensionMismatchException
computeRule in class BaseRuleFactory<BigDecimal>numberOfPoints - Order of the rule to be computed.
DimensionMismatchException - if the elements of the pair do not
have the same length.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||