nectarchain.utils.utils.doubleGaussConstrained#
- doubleGaussConstrained(x, pp, res, mu2, n)[source]#
Constrained double Gaussian model for a single SPE.
- Parameters:
- xarray-like
Points at which to evaluate.
- ppfloat
Parameter p’ controlling the low-charge proportion.
- resfloat
SPE resolution.
- mu2float
Position of the high-charge Gaussian.
- nfloat
Parameter n controlling sigma2.
- Returns:
- array-like
Evaluated constrained double Gaussian.