Learn R Programming

PSCBS (version 0.67.0)

pruneByDP.AbstractCBS: Prunes the CN profile using dynamical programming

Description

Prunes the CN profile using dynamical programming by specifying the target number of segments or alternative how of many change points to drop.

Usage

# S3 method for AbstractCBS
pruneByDP(fit, nbrOfSegments, ..., verbose=FALSE)

Value

Returns a pruned object of the same class.

Arguments

nbrOfSegments

An integer specifying the number of segments after pruning. If negative, the it specifies the number of change points to drop.

...

Optional arguments passed to *seqOfSegmentsByDP().

verbose

See Verbose.

Author

Henrik Bengtsson, Pierre Neuvial

References

[1] ...

Examples

Run this code
if (FALSE) {
 # Drop two segments
 fitP <- pruneByDP(fit, nbrOfSegments=-2)
}

Run the code above in your browser using DataLab