Skip to main content

Real-time change point detection

Project description

rtchange [![Build Status](https://travis-ci.org/hyusuk/rtchange.svg?branch=master)](https://travis-ci.org/hyusuk/rtchange)
========

An implementation of real-time change-point detection in time series.
(See [this paper](http://dl.acm.org/citation.cfm?id=2022866))


## Sample
<img src="images/changepoint_jumping_means.png" width="600px">


## Dependencies

The required dependencies to use rtchange are

- Python >= 3.3
- NumPy


## Installtion

```
$ pip install -U rtchange
```


## Example

```python
>>> from rtchange import Finder
>>> f = Finder()
>>> # `score` method returns the iterator of score of the samples.
>>> scores = f.score([0, 0, 0, 0])
<generator object Finder.score at 0x7faa143c4620>
>>> print(list(scores))
[0.0, 0.3938543257165724, 0.42281301105991476, 0.4718002708508469]
>>> print(list(f.score([1, 1])))
[1.0910027829221285, 1.2528868802573792]
>>> # You can also use `score_one` method for the one sample.
>>> f.score_one(2)
1.4303444070633553
```

## Testing

```
$ virtualenv venv
$ source ./venv/bin/activate
$ pip install -U pip
$ pip install -e .[testing]
$ make test
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtchange-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtchange-0.1.0-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rtchange-0.1.0.tar.gz.

File metadata

  • Download URL: rtchange-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rtchange-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ce894d2f07ccc6aa1eb9d25a856ad92895f91059e97549f33569143927a0219
MD5 8b71171856f14bd05f2a102e5a557f7b
BLAKE2b-256 24c20fec785e9214137955fc7f692d7c114c78d20ddc52cc1c31f7c820146695

See more details on using hashes here.

File details

Details for the file rtchange-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rtchange-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1cbb64a3266f6fa6adb20b33b25e4784ef911fe636b8c34e09b84e1f43006479
MD5 ed1bdfc09de053cd2f740cece63a7374
BLAKE2b-256 6cbaa9230070e4e56984f1cc32598736a05753ca34c27587153e9ca9d8ac8cc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page