Computes exact p-value of the Runs up down distribution

computeRunsUpDownExactProbability(n, R)

Arguments

n

Number of elements

R

Runs up down statistic

Value

pvalue computed