Class GaussChebyshev2ndIntegrator
The integral over [a, b] by the Gauss-Chebyshev (second kind) quadrature of a given order, mapped from [−1, 1]:
QuantLib's
detail::GaussianQuadratureIntegrator<GaussChebyshev2ndIntegration>. It counts no evaluation, as
QuantLib's doesn't.
public sealed class GaussChebyshev2ndIntegrator : Integrator
- Inheritance
-
GaussChebyshev2ndIntegrator
- Inherited Members
Constructors
GaussChebyshev2ndIntegrator(int)
Initializes a new instance of the GaussChebyshev2ndIntegrator class.
public GaussChebyshev2ndIntegrator(int n)
Parameters
nintThe order, positive; QuantLib's maximum number of evaluations too.
Exceptions
- ArgumentOutOfRangeException
nis negative.- ArgumentException
nis zero.
Methods
GetIntegration()
The quadrature.
public GaussChebyshev2ndIntegration GetIntegration()
Returns
- GaussChebyshev2ndIntegration
The quadrature, immutable.
IntegrateCore(Func<double, double>, double, double)
The rule's integral over [a, b], a below b, with the number of evaluations it made and its error estimate, if it computes one.
protected override IntegrationResult IntegrateCore(Func<double, double> f, double a, double b)
Parameters
Returns
- IntegrationResult
The integral, the number of evaluations and the error estimate, or null for none.