retour_sn {fpopw} | R Documentation |
Function used internally by Fpsn and Fpsn_w to do the backtracking and recover the best set of segmentations in 1 to K changes from 1 to n.
retour_sn(path)
path |
matrix of size (K x n) containing the last optimal changes up to j in k segments with i in |
a matrix of size (K x K) containing the best segmentations in 1 to K segments.