Calculate haplotype diversity from a disclapmixfit object. The method is based on simulating a huge database that approximates the population.

haplotype_diversity(object, nsim = 10000L)

Arguments

object

a disclapmixfit object, usually from a result of a call to disclapmix.

nsim

number of haplotypes to generate for calculating the haplotype diversity.

Value

The calculated haplotype diversity.