DynProg: DynProg computes the change points given a cost matrix matD...

View source: R/segTraj_DynProg.R

DynProgR Documentation

DynProg computes the change points given a cost matrix matD and a maximum number of segments Kmax

Description

DynProg computes the change points given a cost matrix matD and a maximum number of segments Kmax

Usage

DynProg(matD, Kmax)

Arguments

matD

the cost Matrix os size n x n

Kmax

the maximal number of segments

Value

a list with J.est a vector with Kmax value, the Kth is the minimum contrast for a model with K segments (-J.est is the log-likelihood) and with t.test a matrix, line K are the coordinates of the change points for a model with K segments


rpatin/segclust2d documentation built on Sept. 10, 2022, 8:02 a.m.