rampedpyrox.extract_moments¶
-
rampedpyrox.
extract_moments
(x, y)[source]¶ Extracts 1st (mean) and 2nd (stdev) moments from a distribution.
Parameters: - x (np.ndarray) – Array of x values, length n.
- y (np.ndarray) – Array of y values, length n.
Returns: - mu (float) – First moment of distribution.
- sigma (float) – Second moment of distribution.