ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for an abstract class implementing operations for a genotype matrix. More...
#include <jade.genotype_matrix.hpp>
Public Types | |
typedef TValue | value_type |
The value type. More... | |
typedef basic_matrix< TValue > | matrix_type |
The matrix type. More... | |
typedef basic_discrete_genotype_matrix< value_type > | dgm_type |
The discrete genotype matrix type. More... | |
typedef basic_likelihood_genotype_matrix< value_type > | lgm_type |
The likelihood genotype matrix type. More... | |
Public Member Functions | |
virtual | ~basic_genotype_matrix () |
Reclaims resources used by the class and derived classes. More... | |
virtual void | compute_derivatives_f (const matrix_type &q, const matrix_type &fa, const matrix_type &fb, const matrix_type &qfa, const matrix_type &qfb, const size_t j, matrix_type &d_vec, matrix_type &h_mat) const =0 |
Computes the derivative vector and hessian matrix for a specified marker of the F matrix. More... | |
virtual void | compute_derivatives_q (const matrix_type &q, 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 =0 |
Computes the derivative vector and hessian matrix for a specified individual of the Q matrix. More... | |
virtual value_type | compute_lle (const matrix_type &q, const matrix_type &fa, const matrix_type &fb, const matrix_type &qfa, const matrix_type &qfb) const =0 |
virtual matrix_type | create_mu (const value_type f_epsilon) const =0 |
virtual size_t | get_height () const =0 |
virtual std::string | get_size_str () const =0 |
virtual size_t | get_width () const =0 |
virtual std::string | str () const =0 |
Protected Member Functions | |
basic_genotype_matrix () | |
Initializes a new instance of the class. More... | |
A template for an abstract class implementing operations for a genotype matrix.
Definition at line 25 of file jade.genotype_matrix.hpp.
typedef basic_discrete_genotype_matrix<value_type> jade::basic_genotype_matrix< TValue >::dgm_type |
The discrete genotype matrix type.
Definition at line 35 of file jade.genotype_matrix.hpp.
typedef basic_likelihood_genotype_matrix<value_type> jade::basic_genotype_matrix< TValue >::lgm_type |
The likelihood genotype matrix type.
Definition at line 38 of file jade.genotype_matrix.hpp.
typedef basic_matrix<TValue> jade::basic_genotype_matrix< TValue >::matrix_type |
The matrix type.
Definition at line 32 of file jade.genotype_matrix.hpp.
typedef TValue jade::basic_genotype_matrix< TValue >::value_type |
The value type.
Definition at line 29 of file jade.genotype_matrix.hpp.
|
inlinevirtual |
Reclaims resources used by the class and derived classes.
Definition at line 43 of file jade.genotype_matrix.hpp.
|
inlineprotected |
Initializes a new instance of the class.
Definition at line 145 of file jade.genotype_matrix.hpp.
|
pure virtual |
Computes the derivative vector and hessian matrix for a specified marker of the F matrix.
q | The Q matrix. |
fa | The F matrix. |
fb | The 1-F 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. |
|
pure virtual |
Computes the derivative vector and hessian matrix for a specified individual of the Q matrix.
q | 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. |
|
pure virtual |
q | The Q matrix. |
fa | The F matrix for major alleles. |
fb | The F matrix for minor alleles. |
qfa | The Q*Fa product. |
qfb | The Q*Fb product. |
|
pure virtual |
f_epsilon | The F matrix boundary epsilon. |
Implemented in jade::basic_discrete_genotype_matrix< TValue >.
|
pure virtual |
Implemented in jade::basic_discrete_genotype_matrix< TValue >.
|
pure virtual |
Implemented in jade::basic_discrete_genotype_matrix< TValue >.
|
pure virtual |
Implemented in jade::basic_discrete_genotype_matrix< TValue >.
|
pure virtual |
Implemented in jade::basic_discrete_genotype_matrix< TValue >.