Class ChebyshevSecondKindRuleFactory
java.lang.Object
org.hipparchus.analysis.integration.gauss.AbstractRuleFactory
org.hipparchus.analysis.integration.gauss.ChebyshevSecondKindRuleFactory
- All Implemented Interfaces:
RuleFactory
Factory that creates Gauss-Chebyshev quadrature rules of the second kind.
The generated rules approximate integrals of the form:
integral from -1 to 1 of f(x) sqrt(1 - x^2) dx
using:
sum from i = 1 to n of w_i f(x_i)
where:
x_i = cos(i pi / (n + 1)), i = 1, ..., n
w_i = pi / (n + 1) sin^2(i pi / (n + 1))
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Pair<double[], double[]> computeRule(int numberOfPoints) Computes the Gauss-Chebyshev quadrature rule of the second kind.Methods inherited from class org.hipparchus.analysis.integration.gauss.AbstractRuleFactory
enforceSymmetry, findRoots, getRule
-
Constructor Details
-
ChebyshevSecondKindRuleFactory
public ChebyshevSecondKindRuleFactory()
-
-
Method Details
-
computeRule
Computes the Gauss-Chebyshev quadrature rule of the second kind.- Specified by:
computeRulein classAbstractRuleFactory- Parameters:
numberOfPoints- order of the rule to be computed- Returns:
- nodes and weights of the quadrature rule
-