If freq and N are provided, but missprob is omitted,
this function computes the probability of failing to observe all alleles
with true underlying frequency freq when N diploid
genotypes are sampled. This is accomplished using the sum provided in
Corollary 2 of Gregorius (1980), omitting terms which contribute less
than tol to the result.
When freq and missprob are provide, but N is
omitted. A binary search on the range of [1,maxN] is performed
to locate the smallest sample size, N, for which the
probability of failing to observe all alleles with true
underlying frequency freq is at most missprob. In this
case, maxiter specifies the largest number of iterations to use
in the binary search, and showiter controls whether the
iterations of the search are displayed.