![]() |
ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for a class that efficiently computes a log-likelihood based on 1) the log of the determinant for a covariance matrix and 2) the inverse of the covariance matrix. The class caches values based on a [K-1 x J] rooted F matrix for major allele frequencies and a [J x 1] mu vector. More...
#include <jade.likelihood.hpp>
Inheritance diagram for jade::basic_likelihood< TValue >:
Collaboration diagram for jade::basic_likelihood< TValue >:Public Types | |
| typedef TValue | value_type |
| The value type. More... | |
| typedef basic_matrix< value_type > | matrix_type |
| The matrix type. More... | |
Public Member Functions | |
| basic_likelihood (const matrix_type &rf, const matrix_type &mu) | |
| Initializes the class based on a rooted F matrix for major allele frequencies and a mu vector; the constructor caches values based on the supplied arguments. More... | |
| value_type | operator() (const matrix_type &c_inv, const value_type log_c_det) |
A template for a class that efficiently computes a log-likelihood based on 1) the log of the determinant for a covariance matrix and 2) the inverse of the covariance matrix. The class caches values based on a [K-1 x J] rooted F matrix for major allele frequencies and a [J x 1] mu vector.
Definition at line 22 of file jade.likelihood.hpp.
| typedef basic_matrix<value_type> jade::basic_likelihood< TValue >::matrix_type |
The matrix type.
Definition at line 29 of file jade.likelihood.hpp.
| typedef TValue jade::basic_likelihood< TValue >::value_type |
The value type.
Definition at line 26 of file jade.likelihood.hpp.
|
inline |
Initializes the class based on a rooted F matrix for major allele frequencies and a mu vector; the constructor caches values based on the supplied arguments.
| rf | The rooted F matrix. |
| mu | The mu vector. |
Definition at line 36 of file jade.likelihood.hpp.
|
inline |
| c_inv | The inverted C matrix. |
| log_c_det | The log of det(C). |
Definition at line 51 of file jade.likelihood.hpp.