tools.stats

tools.stats#

This module provides a skewed Gaussian probability density function with asymmetric low and high scale parameters.

skysurvey.tools.stats.skewed_gaussian_pdf(xx, loc, scale_low, scale_high)[source]#

Compute the probability density function (PDF) of a skewed Gaussian distribution.

The skewed Gaussian distribution is defined by different scale parameters for values below and above the location parameter

Parameters:
  • xx (array_like or str) – Input values at which to evaluate the PDF. If a string, it is assumed to be in NumPy’s r_ format (e.g., “1:10”).

  • loc (float) – Location parameter (mean) of the distribution.

  • scale_low (float) – Scale parameter (standard deviation) for values less than loc.

  • scale_high (float) – Scale parameter (standard deviation) for values greater than loc.

Returns:

  • xx (ndarray) – Input values as a NumPy array.

  • pdf (ndarray) – Probability density function values for the input xx.

Notes

The normalization factor ensures the PDF integrates to 1.