mvtsa.segmentation.WindowDiscrepancy#

class mvtsa.segmentation.WindowDiscrepancy(cost='l2', width=50, n_segments=None, penalty=None, cost_params=None)[source]#

Bases: BaseSegmenter

Sliding two-window discrepancy \(d(t)=cost(t-w,t+w)-cost(t-w,t)-cost(t,t+w)\) and peak picking (Truong, Oudre and Vayatis, 2020).

Parameters:
widthint

Half-width w of the window.

n_segmentsint, optional

Keep the n_segments - 1 highest peaks; otherwise peaks above penalty are kept.

Examples using mvtsa.segmentation.WindowDiscrepancy#

Costs and search strategies

Costs and search strategies

Consensus of segmentations

Consensus of segmentations

Benchmarking segmenters with statistical tests

Benchmarking segmenters with statistical tests