Class LaguerreRule
- java.lang.Object
-
- dev.nm.analysis.integration.univariate.riemann.gaussian.rule.LaguerreRule
-
- All Implemented Interfaces:
GaussianQuadratureRule
public class LaguerreRule extends Object implements GaussianQuadratureRule
- See Also:
- Wikipedia: Laguerre polynomials
-
-
Constructor Summary
Constructors Constructor Description LaguerreRule(int n, double precision)Create a Laguerre rule of the given order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getCoefficients()Get the coefficients \(c_i\) associated with each evaluation point \(x_i\).double[]getEvaluationPoints()Get the evaluation points for the quadrature rule (\(x_i\)).doublegetWeighting(double x)Get the weighting \(w(x_i)\) associated with a point \(x_i\).booleansupportsInterval(double a, double b)Return whether the given interval (a,b) is supported by this rule.
-
-
-
Method Detail
-
getEvaluationPoints
public double[] getEvaluationPoints()
Description copied from interface:GaussianQuadratureRuleGet the evaluation points for the quadrature rule (\(x_i\)).- Specified by:
getEvaluationPointsin interfaceGaussianQuadratureRule- Returns:
- the evaluation points
-
getCoefficients
public double[] getCoefficients()
Description copied from interface:GaussianQuadratureRuleGet the coefficients \(c_i\) associated with each evaluation point \(x_i\).- Specified by:
getCoefficientsin interfaceGaussianQuadratureRule- Returns:
- the coefficients of the evaluation points
-
getWeighting
public double getWeighting(double x)
Description copied from interface:GaussianQuadratureRuleGet the weighting \(w(x_i)\) associated with a point \(x_i\).- Specified by:
getWeightingin interfaceGaussianQuadratureRule- Parameters:
x- the evaluation point- Returns:
- the weighting of the given evaluation point \(w(x)\)
-
supportsInterval
public boolean supportsInterval(double a, double b)Description copied from interface:GaussianQuadratureRuleReturn whether the given interval (a,b) is supported by this rule.- Specified by:
supportsIntervalin interfaceGaussianQuadratureRule- Parameters:
a- the start point of the intervalb- the end point of the interval- Returns:
trueif the interval is supported
-
-