all_partitions {RcppDynProg} | R Documentation |
Build all partitions into intervals.
Description
Build all partitions into intervals.
Usage
all_partitions(n, kmax = n)
Arguments
n |
integer, sequence lenght to choose from. |
kmax |
int, maximum number of segments in solution. |
Value
list of all partitions.
Examples
all_partitions(4, 2)
[Package RcppDynProg version 0.2.1 Index]