Class GaussJacobiPolynomial
The Gauss-Jacobi polynomial, with weight w(x; α, β) = (1 − x)^α·(1 + x)^β on [−1, 1], α, β > −1. Unsealed: QuantLib's Legendre, Chebyshev and Gegenbauer polynomials derive from it.
public class GaussJacobiPolynomial : GaussianOrthogonalPolynomial
- Inheritance
-
GaussJacobiPolynomial
- Derived
- Inherited Members
Constructors
GaussJacobiPolynomial(double, double)
Initializes a new instance of the GaussJacobiPolynomial class.
public GaussJacobiPolynomial(double alpha, double beta)
Parameters
Exceptions
- ArgumentException
A power isn't above −1, or their sum isn't above −2.
Methods
Alpha(int)
The recurrence's α_i.
public override double Alpha(int i)
Parameters
iintThe index, non-negative.
Returns
- double
α_i.
Exceptions
- ArgumentOutOfRangeException
iis negative.- NanoQLException
α_i's denominator is zero and its numerator isn't.
Beta(int)
The recurrence's β_i.
public override double Beta(int i)
Parameters
iintThe index, non-negative.
Returns
- double
β_i.
Exceptions
- ArgumentOutOfRangeException
iis negative.- NanoQLException
β_i's denominator is zero and its numerator isn't.
Mu_0()
μ₀, the integral of the weight function.
public override double Mu_0()
Returns
- double
μ₀.
W(double)
The weight function w(x).
public override double W(double x)
Parameters
xdoubleThe point.
Returns
- double
w(x).