Learn R Programming

PhylogeneticEM (version 1.8.0)

segmentation.BM: Segmentation in the BM case

Description

segmentation.BM performs the segmentation algorithm described.

Usage

segmentation.BM(nbr_of_shifts, costs0, diff_exp)

Value

List containing : edges_max : array of nbr_of_shifts edges where costs0 is maximal. shifts:list containing the computed tau and delta

Arguments

nbr_of_shifts

Number of shifts on the phylogeny allowed

costs0

Cost of each edge

diff_exp

Difference of expectations

Details

This function takes the largest values of costs0, and make them null, thanks to delta and tau.