DYNPROG: Optimal segmentation with dynamic programming

Description Usage Arguments Value Examples

View source: R/dynprog.R

Description

Optimal segmentation with dynamic programming

Usage

1
DYNPROG(dataVec, maxSegs)

Arguments

dataVec

A vector of data to be segmented

maxSegs

The maximum number of segments to create

Value

A cost matrix with the entry at (i, j) being the optimal cost for creating i segments up to data point j

Examples

1
2
sampleVec <- 1:30
result <- DYNPROG(sampleVec, 5)

alyssajs/segmentationPackage documentation built on Dec. 31, 2020, 7:44 p.m.