Interface GaussianQuadratureRule
-
- All Known Implementing Classes:
ChebyshevRule
,HermiteRule
,LaguerreRule
,LegendreRule
public interface GaussianQuadratureRule
This interface defines a Gaussian quadrature rule used in Gaussian quadrature.
-
-
Method Summary
All Methods Instance Methods Abstract 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\)).double
getWeighting(double x)
Get the weighting \(w(x_i)\) associated with a point \(x_i\).boolean
supportsInterval(double a, double b)
Return whether the given interval (a,b) is supported by this rule.
-
-
-
Method Detail
-
getEvaluationPoints
double[] getEvaluationPoints()
Get the evaluation points for the quadrature rule (\(x_i\)).- Returns:
- the evaluation points
-
getCoefficients
double[] getCoefficients()
Get the coefficients \(c_i\) associated with each evaluation point \(x_i\).- Returns:
- the coefficients of the evaluation points
-
getWeighting
double getWeighting(double x)
Get the weighting \(w(x_i)\) associated with a point \(x_i\).- Parameters:
x
- the evaluation point- Returns:
- the weighting of the given evaluation point \(w(x)\)
-
supportsInterval
boolean supportsInterval(double a, double b)
Return whether the given interval (a,b) is supported by this rule.- Parameters:
a
- the start point of the intervalb
- the end point of the interval- Returns:
true
if the interval is supported
-
-