Skip to content

Repository files navigation

Bayesian Change Point Segmentation

Build StatusPyPI versionCoffee

Bayesian Change Point Segmentation (BCPS).

Deprecated. See linear_segment package

Install

If you dont already have numpy and scipy installed, it is best to download Anaconda, a python distribution that has them included.

 https://continuum.io/downloads

Dependencies can be installed by:

 pip install -r requirements.txt

PyPI install, presuming you have all its requirements installed:

	pip install bcpseg

Usage

frombcpsegimportbcpsegimportnumpyasnp# Create datanp.random.seed(10)
x=np.random.random(300000)
x[10000:20000] =x[10000:20000] +0.1x[25000:27000] =x[25000:27000] -1# Calculate segmentssegments=bcpseg(x)
forsegmentinsegments:
print(segment)

About

Bayesian change point segmentation

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages