Closed sergeqzin closed 1 day ago
Issue 2:
in dd_model.py, in the Section dd_gauss3, the variable notes
is misspelled as ntoes
. Because of this, the documentation on dd_gauss3
displays a LaTeX formula of dd_gauss2
(as it precedes dd_gauss3 in dd_models.py).
Please, fix this as well. Thank you!
Upon further investigation the normalisation criteria is working as expected. The amplitude for the all the individual gaussian need to be set to 1. These are amplitudes not weights.
Since changing this would implement a breaking change, I do not propose making the change.
Dear @HKaras
I understand what you are trying to say. Nevertheless, I must point out again that the documentation on these functions disagrees with their implementation. I kindly suggest to fix either of them.
Dear all,
The function
dd_models._multigaussfun
has a misleading normalization step, in my opinionIn K-Gaussian models,
P
is a matrix N \times K, where N is the size of the inputr
-axis. The columns are individual Gaussians normalized to the unit area. After the current normalization step, the integral of each Gaussian is 1/K. This is at least inconsistent with the model description in the documentation. E.g. from https://jeschkelab.github.io/DeerLab/_autosummary/deerlab.dd_gauss2.html#deerlab.dd_gauss2 I conclude that the condition(a1 + a2 = 1)
yields a normalized distribution which is not true in reality.The code below tests the normalization
Thanks!