Continuation of an existing sequence of the number of crossings C and the longest run L in a sequence of n independent continuous observations classified as above or below the empirical median. To enhance precision, results are stored in mpfr arrays and the probabilities are multiplied by \(choose(n,m)/2\) where m=n/2, even n assumed. The probabilities are integers in this representation.
crossrunemcont(emstart, n1 = 61, nmax = 100, prec = 120, printn = FALSE)
existing sequence
sequence length for the first new case addedc
max sequence length.
mpft precision.
logical for including progress output.
nfi, number of sequences with m successes, starting with a success, and nfn, number of sequences with m successes, not starting with a success.