Closed jiangyi15 closed 1 year ago
Patch coverage has no change and project coverage change: -0.02%
:warning:
Comparison is base (
37a80db
) 75.93% compared to head (a87574a
) 75.92%.:exclamation: Current head a87574a differs from pull request most recent head e767de5. Consider uploading reports for the commit e767de5 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Add more sampling method for resolution such as Gauss-Legendre quadrature. The integral precision is depend on the number of points (M). $$\int f(x)d x = \int \frac{f(x)}{\rho(x)} \rho(x) d x = \sum_{i=1}^{M} A_i \frac{f(x_i)}{\rho(x_i)}$$ Choosing a proper $\rho(x)$, the max precision is that $\frac{f(x)}{\rho(x)}$ can be describe well in no more than $2M-1$ order polynomials.
Gauss-Legendre quadrature: $\rho(x)=1$, the integral range is $[-1,1]$ Gauss-Hermite quadrature: $\rho(x)=\exp(-x^2)$, the integral range is $[-\infty, +\infty]$