crossrunbin: Joint Distribution for Crossings and Runs
Description
Joint probability distribution for the number of crossings
C and the longest run L in a sequence of n independent Bernoulli observations
with success probability p. To enhance precision, results are stored
in mpfr arrays and the probabilities are multiplied by \(m^{n-1}\)
for a multiplier m.