An optimal partitioning algorithm with a linear fit for each segment
1 |
x |
a vector (see data) |
data |
a vector defining the data points (x[i], data[i]) |
penalty |
the penalty for introducing a new segment |
cc |
a boolean to impose a continuity constraint |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.