Objective function when updating a single inbreeding coefficient.
obj_for_rho(rho, mu, sigma2, alpha, log_bb_dense, ploidy)
The inbreeding coefficient for the individual.
A vector of posterior means. The jth element is the posterior mean of SNP j for the individual.
A vector of posterior variances. The jth element is the posterior variance of SNP j for the individual.
A vector of allele frequencies. The jth element is the allele frequency for SNP j.
A matrix of log posterior densities. The rows index the SNPs and the columns index the dosage.
The ploidy of the species.
A double. The objective when updating
rho
in mupdog
.