Class ChebyshevSecondKindRuleFactory

java.lang.Object
org.hipparchus.analysis.integration.gauss.AbstractRuleFactory
org.hipparchus.analysis.integration.gauss.ChebyshevSecondKindRuleFactory
All Implemented Interfaces:
RuleFactory

public class ChebyshevSecondKindRuleFactory extends AbstractRuleFactory
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 Details

    • ChebyshevSecondKindRuleFactory

      public ChebyshevSecondKindRuleFactory()
  • Method Details

    • computeRule

      protected Pair<double[],double[]> computeRule(int numberOfPoints)
      Computes the Gauss-Chebyshev quadrature rule of the second kind.
      Specified by:
      computeRule in class AbstractRuleFactory
      Parameters:
      numberOfPoints - order of the rule to be computed
      Returns:
      nodes and weights of the quadrature rule