Top Description Constructors Methods
org.apache.commons.math3.analysis.integration.gauss

public Class LegendreRuleFactory

extends BaseRuleFactory<Double>
Class Inheritance
Imports
org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.util.Pair

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Pair<Double[], Double[]>
computeRule(int
Order of the rule to be computed.
numberOfPoints
)

Implements abstract org.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory.computeRule.

Computes the rule for the given order.

Inherited from org.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory:
addRulegetRulegetRuleInternal

Constructor Detail

LegendreRuleFactoryback to summary
public LegendreRuleFactory()

Method Detail

computeRuleback to summary
protected Pair<Double[], Double[]> computeRule(int numberOfPoints) throws DimensionMismatchException

Implements abstract org.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory.computeRule.

Doc from org.apache.commons.math3.analysis.integration.gauss.BaseRuleFactory.computeRule.

Computes the rule for the given order.

Parameters
numberOfPoints:int

Order of the rule to be computed.

Returns:Pair<Double[], Double[]>

the computed rule.

Annotations
@Override
Exceptions
DimensionMismatchException:
if the elements of the pair do not have the same length.