doCBS function

Performs Circular Binary Segmentation (CBS) on a data set