Class LegendreHighPrecisionRuleFactory

java.lang.Object
org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory<java.math.BigDecimal>
org.apache.commons.math4.analysis.integration.gauss.LegendreHighPrecisionRuleFactory

public class LegendreHighPrecisionRuleFactory
extends BaseRuleFactory<java.math.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 Abramowitz and Stegun, 1964.
Since:
3.1
  • Constructor Summary

    Constructors 
    Constructor Description
    LegendreHighPrecisionRuleFactory()
    Default precision is DECIMAL128.
    LegendreHighPrecisionRuleFactory​(java.math.MathContext mContext)  
  • Method Summary

    Modifier and Type Method Description
    protected Pair<java.math.BigDecimal[],​java.math.BigDecimal[]> computeRule​(int numberOfPoints)
    Computes the rule for the given order.

    Methods inherited from class org.apache.commons.math4.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