Number of all possible segmentations in K segments
Usage
CardMK(n,K)
Arguments
n
Integer giving length of dataset.
K
Integer giving number of segments in segmentation.
Value
A numeric object giving the number of possible segmentations of [1,n] in K segments.
Details
Returns the number of possible segmentations of [1,n] in K segments
References
Rigaill, Lebarbier & Robin (2012): Exact posterior distributions over the segmentation space and model selection for multiple change-point detection problems Statistics and Computing