std_with_mean¶
- std_with_mean(X: ndarray, X_mean: float) float¶
Numba standard deviation function for a 1d numpy array with pre-calculated mean.
- Parameters:
- X1d numpy array
A 1d numpy array of values
- X_meanfloat
The mean of the input array
- Returns:
- stdfloat
The standard deviation of the input array
Examples
>>> import numpy as np >>> from aeon.utils.numba.stats import std_with_mean >>> X = np.array([1, 2, 2, 3, 3, 3, 4, 4, 4, 4]) >>> s = std_with_mean(X, 3)