jiangyi15 / tf-pwa

Partial Wave Analysis using TensorFlow.
MIT License
27 stars 13 forks source link

Resolution sample #108

Closed jiangyi15 closed 1 year ago

jiangyi15 commented 1 year ago

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]$

codecov[bot] commented 1 year ago

Codecov Report

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #108 +/- ## ========================================== - Coverage 75.93% 75.92% -0.02% ========================================== Files 108 108 Lines 15668 15664 -4 Branches 2946 2945 -1 ========================================== - Hits 11898 11893 -5 Misses 3073 3073 - Partials 697 698 +1 ``` | [Flag](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/108/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/108/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | `75.92% <ø> (-0.02%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/108?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | Coverage Δ | | |---|---|---| | [tf\_pwa/config\_loader/decay\_config.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/108?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#diff-dGZfcHdhL2NvbmZpZ19sb2FkZXIvZGVjYXlfY29uZmlnLnB5) | `75.59% <ø> (ø)` | | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/108/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.