segmentation.BM: Segmentation in the BM case

View source: R/M_step.R

segmentation.BMR Documentation

Segmentation in the BM case

Description

segmentation.BM performs the segmentation algorithm described.

Usage

segmentation.BM(nbr_of_shifts, costs0, diff_exp)

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.

Value

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


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.