-
Notifications
You must be signed in to change notification settings - Fork 0
expected_genetic_merit
Josh Fogg edited this page Jul 31, 2024
·
1 revision
expected_genetic_merit(w, mu)
A shortcut function for computing the expected genetic merit (
-
w : ndarray
Portfolio vector$\mathbf{w}$ representing a particular selection. -
mu : ndarray
Vector of expected breeding values$\boldsymbol\mu$ for the cohort.
-
float
The expected genetic merit of the selection.
Given some optimal contribution vector
>>> w
array([0.38225694, 0.38225694, 0.11774306, 0.11774306])
and some relationship matrix
>>> mu
array([1., 1., 2., 2.])
then we can compute the expected genetic merit as
>>> robustocs.expected_genetic_merit(w, mu)
1.2354861108597817
or equivalently using NumPy as
>>> w.transpose() @ mu
1.2354861108597817
This documentation relates to the latest version of the package on GitHub. For past versions, download the zip bundled with the release from here. If anything in this wiki looks incorrect or you think key information is missing, please do open an issue.