Function to get the segregation probabilities from the distributions of each component and the weights of each component.
pivec_from_segmats(p1segmat, p2segmat, p1weight, p2weight)
The matrix of segregation probabilities for each component for parent 1. The rows index the components and the columns index the number of alleles to segregate.
The matrix of segregation probabilities for each component for parent 2. The rows index the components and the columns index the number of alleles to segregate.
A vector of weights for each component (row) of
p1segmat
.
A vector of weights for each component (row) of
p2segmat
.
A vector. The ith element is the probability of segregating i+1 total A alleles.
This is mostly used in update_pp_f1
.