## Class FieldLegendreRuleFactory<T extends CalculusFieldElement<T>>

• Type Parameters:
T - Type of the number used to represent the points and weights of the quadrature rules.
All Implemented Interfaces:
FieldRuleFactory<T>

public class FieldLegendreRuleFactory<T extends CalculusFieldElement<T>>
extends FieldAbstractRuleFactory<T>
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:
2.0
• ### Constructor Summary

Constructors
Constructor Description
FieldLegendreRuleFactory​(Field<T> field)
Simple constructor
• ### Method Summary

All Methods
Modifier and Type Method Description
Pair<T[],​T[]> computeRule​(int numberOfPoints)
Computes the rule for the given order.
• ### Methods inherited from class org.hipparchus.analysis.integration.gauss.FieldAbstractRuleFactory

enforceSymmetry, findRoots, getField, getRule
• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
• ### Constructor Detail

• #### FieldLegendreRuleFactory

public FieldLegendreRuleFactory​(Field<T> field)
Simple constructor
Parameters:
field - field to which rule coefficients belong
• ### Method Detail

• #### computeRule

public Pair<T[],​T[]> computeRule​(int numberOfPoints)
throws MathIllegalArgumentException
Computes the rule for the given order.
Specified by:
computeRule in class FieldAbstractRuleFactory<T extends CalculusFieldElement<T>>
Parameters:
numberOfPoints - Order of the rule to be computed.
Returns:
the computed rule.
Throws:
MathIllegalArgumentException - if the elements of the pair do not have the same length.