mvtsa.segmentation.CUSUMDetector#

class mvtsa.segmentation.CUSUMDetector(k=0.5, h=20.0, warmup=50)[source]#

Bases: object

Multivariate CUSUM change detector.

The statistic accumulates the excess of the squared Mahalanobis distance of new samples from a reference distribution, \(S_t=\max(0,S_{t-1}+m_t-n-k)\), and signals when it exceeds h; after a signal the reference is re-estimated from the next warmup samples.

Parameters:
kfloat

Allowance (slack) per sample, in units of the expected distance.

hfloat

Decision limit.

warmupint

Samples used to estimate the reference mean and covariance.

Examples using mvtsa.segmentation.CUSUMDetector#

Segmentation of a data stream

Segmentation of a data stream