morpheus.stages.postprocess.timeseries_stage
Functions
|
Calculates the bin spacing between the start and stop timestamp at a specified resolution. |
|
Detect anomalies with fast fourier transform. |
|
Returns the given timestamp with rounded seconds. |
|
Returns periodogram of signal for finding frequencies that have high energy. |
|
Calculate z score of cupy.ndarray. |
Classes
|
Perform time series anomaly detection and add prediction. |
- calc_bin(obj, t0, resolution_sec)[source]
Calculates the bin spacing between the start and stop timestamp at a specified resolution.
- fftAD(signalvalues, p=90, zt=8, lowpass=None)[source]
Detect anomalies with fast fourier transform.
- Parameters
- signalvaluescupy.ndarray
- pint, optional
- ztint, optional
- lowpass_type_, optional
Values of time signal (real valued).
Filtering percentile for spectral density based filtering, by default 90.
Z-score threshold, can be tuned for datasets and sensitivity, by default 8.
Filtering percentile for frequency based filtering, by default None.
- Returns
- cupy.ndarray
Binary vector whether each point is anomalous.
- round_seconds(obj)[source]
Returns the given timestamp with rounded seconds.
- Parameters
- objpd.Timestamp
Timestamp obj.
- Returns
- pd.Timestamp
Timestamp with rounded seconds.
- to_periodogram(signal_cp)[source]
Returns periodogram of signal for finding frequencies that have high energy.
- Parameters
- signal_cpcupy.ndarray
Signal (time domain).
- Returns
- cupy.ndarray
CuPy array representing periodogram.
- zscore(data)[source]
Calculate z score of cupy.ndarray.