Description Usage Arguments Details Value Author(s) References See Also Examples
Number of all possible segmentations in K segments
1 | CardMK(n,K)
|
n |
Integer giving length of dataset. |
K |
Integer giving number of segments in segmentation. |
Returns the number of possible segmentations of [1,n] in K segments
A numeric object giving the number of possible segmentations of [1,n] in K segments.
Alice Cleynen
Rigaill, Lebarbier & Robin (2012): Exact posterior distributions over the segmentation space and model selection for multiple change-point detection problems Statistics and Computing
1 2 3 4 | # number of partitions of {1, 100} in 5 segments:
n<-100
K<-5
CardMK(n,K)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.