Skip to content

Commit 54b8583

Browse files
committed
add documentation piece
1 parent 8c8743f commit 54b8583

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

docs/src/quality.rst

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ We define the average qualities for different fragments
7373
(frag = *sn-1*, *sn-2*, *headgroup*, or *total*, with the last referring to all order
7474
parameters within a molecule) within each lipid type in a simulation as
7575

76-
NOTE!!! it seems that total value is actually the average of fragemnst!!!
76+
NOTE!!! it seems that total value is actually the average of fragments!!!
7777

7878
.. math::
7979
@@ -138,7 +138,27 @@ position. For the fit function :math:`f(x) = ax^2 - bx + c`, the error of the mi
138138
\sigma_\mathrm{min} = \frac{1}{4a^2}\mathrm{cov}[a, a] +
139139
\frac{b^2}{4a^4}\mathrm{cov}[b, b] - \frac{b}{2a^3}\mathrm{cov}[a, b].
140140
141-
Then, the quality is computed using the same equation as for two order parameter values (see above).
141+
Then, the quality is computed using the product of penalties from distance, confidence,
142+
and experiment precision.
143+
144+
.. math::
145+
146+
FF_q &
147+
= \exp{\left(
148+
-\frac{(FF_\mathrm{min}^\mathrm{sim} - FF_\mathrm{min}^\mathrm{exp})^2}
149+
{\sigma_\mathrm{dpos}^2} \right)} +
150+
\exp{\left(
151+
-\frac{\sigma_\mathrm{sim}^2+\sigma_\mathrm{exp}^2}
152+
{4 \sigma_\mathrm{ref}^2}\right)} +
153+
\exp{(-w z^2)}, \\
154+
z &
155+
= \frac{\left|FF_\mathrm{min}^\mathrm{sim} - FF_\mathrm{min}^\mathrm{exp}\right|}
156+
{\sqrt{\sigma_\mathrm{sim}^2+\sigma_\mathrm{exp}^2}}
157+
158+
where :math:`\sigma_\mathrm{dpos} = 0.02` (meaningful distance between peak minima),
159+
:math:`\sigma_\mathrm{ref} = 0.01` (meaningful average peak uncertainty), :math:`w = 0.3`
160+
-- free parameter that controls the weight to the significance of statistical confidence of peak
161+
difference.
142162

143163
Previously, the default quality of a form factor was defined as the distance between the minima locations:
144164

0 commit comments

Comments
 (0)