Description Usage Arguments Value
Functional pruning optimal partitioning with data in a tree structure
1 |
vertex_data |
vector of data associated to each vertex |
tree |
tree structure encoded in a list |
type |
a string defining the cost model to use: "mean", "variance", "poisson", "exp", "negbin" |
weights |
vector of weights (positive numbers), same size as data |
testMode |
boolean. False by default. Used to debug the code |
a gfpop object = (changepoints, states, forced, parameters, globalCost)
changepointsis the vector of changepoints (we give the last element of each segment)
statesis the vector giving the state of each segment
forcedis the vector specifying whether the constraints of the graph are active (=1) or not (=0)
parametersis the vector of successive parameters of each segment
globalCostis a number equal to the total loss: the minimal cost for the optimization problem with all penalty values excluded
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.