hyperfine.distributions.skewed_gaussian_pdf
- hyperfine.distributions.skewed_gaussian_pdf(x: Sequence[float], mu: Annotated[float, slice(None, None, None)], sigma_m: Annotated[float, slice(0, None, None)], sigma_p: Annotated[float, slice(0, None, None)]) Sequence[float][source]
Probability density function for a skewed Gaussian distribution.
This implementation uses a piecewise definition, wherein two scale parameters are used to define the width on either side of the distribution’s location parameter.
This convention here follows that of in musrfit).
Note - all parameters must have the same units (e.g., magnetic field)!
- Parameters:
x – Position.
mu – Location parameter.
sigma_m – Negative scale parameter (i.e., for positions less than the location parameter).
sigma_p – Positive scale parameter (i.e., for positions greater than the location parameter).
- Returns:
The probability density at position x.