Menu

Gaussian plot

Anonymous
2021-03-09
2021-03-09
  • Anonymous

    Anonymous - 2021-03-09

    Hi,
    I'm trying to export the data from the amplitude histogramm. Unfortunately I only foud a way to export the histogramm itself but not the gaussian model. Is there a way to export either the curve or the exact function of the gaussian fit?
    Thanks for any help on that topic!

     
  • Viatcheslav Nesterov

    Hi!
    You cannot export the curve, but you have the formula.

    General formula is given by Equations 4.7 and 4.8 of the User's Manual.

    After you make a fit, results are reported in the Notebook more or less like this:

    Sigma for all closed: 0.6243
    Sigma: 0.3757
    Sum of uncorrected probabilities: 1.0014
    /# I Prob. Corrected Prob.
    0 -16.8386 0.4832 0.4825
    1 -17.9647 0.3212 0.3208
    2 -18.7847 0.1970 0.1967
    Single channel current: -0.9731
    NPo from multigaussian fit: 0.7142

    In this table, I (current value at each level) corresponds to math.expectation at each level (mu0, mu_i in the formula 4.7); "Sigma for all closed" corresponds to sigma0 in Eq. 4.7, "Sigma" corresponds to Sigma1, Sigma2 etc. "Corrected Prob" is used as P_i in the same formula.

    So, in this example, exact function looks like:
    pdf(x) = 0.4852 * g(x, -16.8386, 0.6243) + 0.3208 * g(x, -17.9647, 0.3757) + 0.1967 * g(x, -18.7847, 0.3757)

    g(x,mu,sigma) is formula of gaussian distribution, Eq. 4.8 in the User's Manual.

    Note, that separate sigma for all closed (Sigma0) is calculated only if "Separate sigma for "all closed"" option is checked in the Preferences dialog, otherwise only one Sigma is reported and used for all levels.

    Hope, this answers your question. If you have further questions, don't hesitate to make them.

    Best regards!

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.