org.apache.commons.math3.analysis.integration.gauss
Class LegendreHighPrecisionRuleFactory
java.lang.Object
org.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory<BigDecimal>
org.apache.commons.math3.analysis.integration.gauss.LegendreHighPrecisionRuleFactory
public class LegendreHighPrecisionRuleFactory
- extends BaseRuleFactory<BigDecimal>
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 .
- Since:
- 3.1
- Version:
- $Id: LegendreHighPrecisionRuleFactory.java 1455194 2013-03-11 15:45:54Z luc $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LegendreHighPrecisionRuleFactory
public LegendreHighPrecisionRuleFactory()
- Default precision is
DECIMAL128
.
LegendreHighPrecisionRuleFactory
public LegendreHighPrecisionRuleFactory(MathContext mContext)
- Parameters:
mContext
- Precision setting for computing the quadrature rules.
computeRule
protected Pair<BigDecimal[],BigDecimal[]> computeRule(int numberOfPoints)
throws DimensionMismatchException
- Computes the rule for the given order.
- Specified by:
computeRule
in class BaseRuleFactory<BigDecimal>
- Parameters:
numberOfPoints
- Order of the rule to be computed.
- Returns:
- the computed rule.
- Throws:
DimensionMismatchException
- if the elements of the pair do not
have the same length.
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.