npstat::ComparisonDensityFunctor1D Class Reference
Inheritance diagram for npstat::ComparisonDensityFunctor1D:
Member Function Documentation◆ cosCoeff()
Coefficient of expansion of this function into cosine basis, that is, sqrt(2)*cos(k Pi x). The integration is performed using the rectangle integration rule, with nInteg intervals. nInteg should be substantially larger than k, something like 16*k should work reasonably well. ◆ legendreCoeff()
Coefficient of expansion of this function into shifted Legendre polynomials (that is, Legendre polynomials orthonormal on [0, 1]). ◆ legendreSeriesCoeffs()
All coefficients of the Legendre polynomial expansion of the density, up to the degree requested. The array "coeffs" should have at least maxDeg+1 elements. ◆ trigCoeff()
Coefficient of expansion of this function into trigonometric functions, that is, sqrt(2)*sin(2 k Pi x) and sqrt(2)*cos(2 k Pi x). The integration is performed using the rectangle integration rule, with nInteg intervals. nInteg should be substantially larger than k, something like 32*k should work reasonably well. The documentation for this class was generated from the following file: Generated by 1.9.1 |