segmentation.BM {PhylogeneticEM} | R Documentation |
segmentation.BM
performs the segmentation algorithm described.
segmentation.BM(nbr_of_shifts, costs0, diff_exp)
nbr_of_shifts |
Number of shifts on the phylogeny allowed |
costs0 |
Cost of each edge |
diff_exp |
Difference of expectations |
This function takes the largest values of costs0, and make them null, thanks to delta and tau.
List containing : edges_max : array of nbr_of_shifts edges where costs0 is maximal. shifts:list containing the computed tau and delta