Learn R Programming

PhylogeneticEM (version 1.0.0)

segmentation.OU.specialCase.same_shifts: Segmentation in the OU special case, conserving the same shifts position.

Description

segmentation.OU.specialCase.same_shifts keeps the same shifts position, and optimize the sum of costs using function optimize_costs_given_shift_position.OU.specialCase.

Usage

segmentation.OU.specialCase.same_shifts(phylo, shifts_old, D, Xp, ...)

Arguments

phylo
a phylogenetic tree
shifts_old
the previous list of shifts (only position is used)
conditional_law_X
moments of the conditional law of X given Y, result of function compute_M.OU.specialCase
selection.strength
the selection strength

Value

List containing : beta_0 : the optimal value at the root shifts : list containing the computed tau and delta costs : vector of costs

Details

This is the best move if keeping the previous shifts positions.