R/proto_functions.R
haplotype_diversity.RdCalculate haplotype diversity from a disclapmixfit object. The
method is based on simulating a huge database that approximates the
population.
haplotype_diversity(object, nsim = 10000L)a disclapmixfit object, usually from a result of
a call to disclapmix.
number of haplotypes to generate for calculating the haplotype diversity.
The calculated haplotype diversity.