Merge two neighboring segments into one segment, which is done by dropping their common change point and recalculating the segment statistics.
# S3 method for AbstractCBS
mergeTwoSegments(...)
Returns an AbstractCBS
of the same class with one less segment.
Not used.
Henrik Bengtsson
To merge a segment and its two flanking segments, see
*mergeThreeSegments()
.
To drop regions (a connected set of segments)
see *dropRegions()
.
For more information see AbstractCBS
.