powered by
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 AbstractCBS pruneByDP(fit, nbrOfSegments, ..., verbose=FALSE)
Returns a pruned object of the same class.
An integer specifying the number of segments after pruning. If negative, the it specifies the number of change points to drop.
integer
Optional arguments passed to *seqOfSegmentsByDP().
*seqOfSegmentsByDP()
See Verbose.
Verbose
Henrik Bengtsson, Pierre Neuvial
[1] ...
if (FALSE) { # Drop two segments fitP <- pruneByDP(fit, nbrOfSegments=-2) }
Run the code above in your browser using DataLab