pruneByDP.AbstractCBS | R Documentation |
Prunes the CN profile using dynamical programming by specifying the target number of segments or alternative how of many change points to drop.
## S3 method for class 'AbstractCBS'
pruneByDP(fit, nbrOfSegments, ..., verbose=FALSE)
nbrOfSegments |
An |
... |
Optional arguments passed to |
verbose |
See |
Returns a pruned object of the same class.
Henrik Bengtsson, Pierre Neuvial
[1] ...
## Not run:
# Drop two segments
fitP <- pruneByDP(fit, nbrOfSegments=-2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.