multiSeg_RestrictedDynProg_Mean {KernSeg} | R Documentation |
function to run restricted dp L2 (= DP on a restricted set of candidate change-points)
multiSeg_RestrictedDynProg_Mean(sumXs, sumX2, sumWeights, Kmax, changes)
sumXs |
cumsum for X mxn |
sumX2 |
cumsum of squares m x n |
sumWeights |
cumsum weights |
Kmax |
maximum number of changes |
changes |
position of changes |
return result of C code with t.est and J.est (internal use)
Guillem Rigaill