An optimal partitioning algorithm with a linear fit for each segment
linearOP(x, data, penalty, cc = FALSE)
a vector (see data)
a vector defining the data points (x[i], data[i])
the penalty for introducing a new segment
a boolean to impose a continuity constraint
Looks like there are no examples yet.