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