pruneByDP.AbstractCBS: Prunes the CN profile using dynamical programming

Description Usage Arguments Value Author(s) References Examples

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

1
2
## S3 method for class 'AbstractCBS'
pruneByDP(fit, nbrOfSegments, ..., verbose=FALSE)

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.

Value

Returns a pruned object of the same class.

Author(s)

Henrik Bengtsson, Pierre Neuvial

References

[1] ...

Examples

1
2
3
4
5
## Not run: 
 # Drop two segments
 fitP <- pruneByDP(fit, nbrOfSegments=-2)

## End(Not run)

PSCBS documentation built on Oct. 23, 2021, 9:09 a.m.