Piecewise Gaussian (pw_normal)#
Return a 2D piecewise Gaussian signal and the associated changepoints.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n_samples |
int
|
signal length |
200
|
n_bkps |
int
|
number of change points |
3
|
seed |
int
|
random seed |
None
|
Returns:
Name | Type | Description |
---|---|---|
tuple |
signal of shape (n_samples, 2), list of breakpoints |
Source code in ruptures/datasets/pw_normal.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|