ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template class implementing operations for a likelihood genotype matrix type. More...
#include <jade.likelihood_genotype_matrix.hpp>
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_genotype_matrix () | |
Initializes a new instance of the class. More... | |
basic_likelihood_genotype_matrix (std::istream &in) | |
Initializes a new instance of the class based on values from the specified input stream. More... | |
basic_likelihood_genotype_matrix (const std::string &path) | |
Initializes a new instance of the class based on values from the specified file. More... | |
basic_likelihood_genotype_matrix (char const *const path) | |
Initializes a new instance of the class based on values from the specified file. More... | |
basic_likelihood_genotype_matrix (const matrix_type &g_aa, const matrix_type &g_Aa, const matrix_type &g_AA) | |
Initializes a new instance of the class based on values from the specified matrices. More... | |
const basic_likelihood_genotype_matrix * | as_lgm () const override |
basic_likelihood_genotype_matrix * | as_lgm () override |
virtual void | compute_derivatives_f (const matrix_type &q, const matrix_type &, const matrix_type &, const matrix_type &qfa, const matrix_type &qfb, const size_t j, matrix_type &d_vec, matrix_type &h_mat) const override |
Computes the derivative vector and hessian matrix for a specified marker of the F matrix. More... | |
virtual void | compute_derivatives_q (const matrix_type &, const matrix_type &fa, const matrix_type &fb, const matrix_type &qfa, const matrix_type &qfb, const size_t i, matrix_type &d_vec, matrix_type &h_mat) const override |
Computes the derivative vector and hessian matrix for a specified individual of the Q matrix. More... | |
virtual value_type | compute_lle (const matrix_type &, const matrix_type &, const matrix_type &, const matrix_type &qfa, const matrix_type &qfb) const override |
virtual matrix_type | create_mu (const value_type f_epsilon) const override |
virtual size_t | get_height () const override |
const matrix_type & | get_major_major_matrix () const |
const matrix_type & | get_major_minor_matrix () const |
const matrix_type & | get_minor_minor_matrix () const |
virtual std::string | get_size_str () const override |
virtual size_t | get_width () const override |
virtual std::string | str () const override |
A template class implementing operations for a likelihood genotype matrix type.
Definition at line 19 of file jade.likelihood_genotype_matrix.hpp.
typedef basic_matrix<value_type> jade::basic_likelihood_genotype_matrix< TValue >::matrix_type |
The matrix type.
Definition at line 27 of file jade.likelihood_genotype_matrix.hpp.
typedef TValue jade::basic_likelihood_genotype_matrix< TValue >::value_type |
The value type.
Definition at line 24 of file jade.likelihood_genotype_matrix.hpp.
|
inline |
Initializes a new instance of the class.
Definition at line 32 of file jade.likelihood_genotype_matrix.hpp.
|
inlineexplicit |
Initializes a new instance of the class based on values from the specified input stream.
in | The input stream. |
Definition at line 43 of file jade.likelihood_genotype_matrix.hpp.
|
inlineexplicit |
Initializes a new instance of the class based on values from the specified file.
path | The path to the file. |
Definition at line 56 of file jade.likelihood_genotype_matrix.hpp.
|
inlineexplicit |
Initializes a new instance of the class based on values from the specified file.
path | The path to the file. |
Definition at line 66 of file jade.likelihood_genotype_matrix.hpp.
|
inlineexplicit |
Initializes a new instance of the class based on values from the specified matrices.
g_aa | The minor-minor matrix. |
g_Aa | The major-minor matrix. |
g_AA | The major-major matrix. |
Definition at line 95 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverride |
Definition at line 109 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverride |
Definition at line 117 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
Computes the derivative vector and hessian matrix for a specified marker of the F matrix.
q | The Q matrix. |
qfa | The Q*F product. |
qfb | The Q*(1-F) product. |
j | The marker. |
d_vec | The derivative vector. |
h_mat | The hessian matrix. |
Definition at line 126 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
Computes the derivative vector and hessian matrix for a specified individual of the Q matrix.
fa | The F matrix. |
fb | The 1-F matrix. |
qfa | The Q*F product. |
qfb | The Q*(1-F) product. |
i | The individual. |
d_vec | The derivative vector. |
h_mat | The hessian matrix. |
Definition at line 241 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
qfa | The Q*Fa product. |
qfb | The Q*Fb product. |
Definition at line 381 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
f_epsilon | The F matrix boundary epsilon. |
Definition at line 424 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
Definition at line 476 of file jade.likelihood_genotype_matrix.hpp.
|
inline |
Definition at line 484 of file jade.likelihood_genotype_matrix.hpp.
|
inline |
Definition at line 492 of file jade.likelihood_genotype_matrix.hpp.
|
inline |
Definition at line 500 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
Definition at line 508 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
Definition at line 516 of file jade.likelihood_genotype_matrix.hpp.
|
inlineoverridevirtual |
Definition at line 524 of file jade.likelihood_genotype_matrix.hpp.