mvtsa.segmentation.CostLinear#

class mvtsa.segmentation.CostLinear[source]#

Bases: BaseCost

Residual sum of squares of a straight line fitted to every variable against time (piecewise linear approximation, PLA; Keogh and Pazzani, 1998). \(O(n)\) per query.

n_params()[source]#

Number of free parameters of one segment model (for BIC/MDL penalties).