Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.estimate_skewnorm  (  med per_0 per_1  )[source]

Parameters:
medscalar

The median (0.5-percentile) of a random variable.

per_0scalar

The left-sided 1-sigma percentile (~0.1587-percentile) relative to 'med'.

per_1scalar

The right-sided 1-sigma percentile (~0.8413-percentile) relative to 'med'.

Returns:
outNone

A size-3-array of the estimated parameters (alpha, mean, std.) of a skew normal distribution that matches the given percentiles.

Raises:
ValueError

If the ratio between the left-(right-) and right-(left-)sided uncertainty exceeds 1.5.

API navigation