darfix.core.mapping.compute_moments#
- darfix.core.mapping.compute_moments(values, data, smooth=True)[source]#
Compute first, second, third and fourth moment of data on values.
- Parameters:
values – 1D array of X-values
data – nD array of Y-values with len(weight) == len(values)
smooth (
bool
) –
- Returns:
The four first moments to distribution Y(X)