all_partitions {RcppDynProg} | R Documentation |
Build all partitions into intervals.
all_partitions(n, kmax = n)
n |
integer, sequence lenght to choose from. |
kmax |
int, maximum number of segments in solution. |
list of all partitions.
all_partitions(4, 2)