deepcharles / ruptures

ruptures: change point detection in Python
BSD 2-Clause "Simplified" License
1.56k stars 161 forks source link

docs: pw_normal #241

Closed theovincent closed 2 years ago

theovincent commented 2 years ago

This is just a small change in the docs of pw_normal. The line n = 500, 3 # number of samples is not working.

import numpy as np
import matplotlib.pylab as plt
import ruptures as rpt

# creation of data
n = 500, 3  # number of samples
n_bkps = 3  # number of change points, noise standart deviation
signal, bkps = rpt.pw_normal(n, n_bkps)
rpt.display(signal, bkps)

->

import numpy as np
import matplotlib.pylab as plt
import ruptures as rpt

# creation of data
n = 500  # number of samples
n_bkps = 3  # number of change points
signal, bkps = rpt.pw_normal(n, n_bkps)
rpt.display(signal, bkps)
deepcharles commented 2 years ago

thanks!