Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 284 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 284 Bytes

cbs

A simple implementation of the circular binary segmentation algorithm in python.

import cbs
data = cbs.generate_normal_time_series(10)
L = cbs.segment(data)

The resulting list L contains pairs (x,y) where each slice data[x:y] is a distinct segment of the data.