ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for a class implementing operations for a discrete genotype matrix. More...
#include <jade.discrete_genotype_matrix.hpp>
Public Types | |
typedef TValue | value_type |
The value type. More... | |
typedef basic_matrix< genotype > | genotype_matrix_type |
The genotype matrix type. More... | |
typedef basic_matrix< value_type > | matrix_type |
The matrix type. More... | |
typedef basic_verification< value_type > | verification_type |
The verification type. More... | |
typedef genotype_matrix_type::initializer_list_type | initializer_list_type |
The initializer list for the genotype matrix. 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 | |
basic_discrete_genotype_matrix () | |
Initializes a new instance of the class. More... | |
basic_discrete_genotype_matrix (char const *const path) | |
Initializes a new instance of the class based on values from the specified file. More... | |
basic_discrete_genotype_matrix (const std::string &path) | |
Initializes a new instance of the class based on values from the specified file. More... | |
basic_discrete_genotype_matrix (std::istream &in) | |
Initializes a new instance of the class based on values from the specified input stream. More... | |
basic_discrete_genotype_matrix (const initializer_list_type &values) | |
Initializes a new instance of the class based on the specified values. More... | |
const basic_discrete_genotype_matrix * | as_dgm () const override |
basic_discrete_genotype_matrix * | as_dgm () 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 &q, const matrix_type &fa, const matrix_type &fb, const matrix_type &, const matrix_type &) const override |
virtual matrix_type | create_mu (const value_type f_epsilon) const override |
const genotype_matrix_type & | get_matrix () const |
virtual size_t | get_height () const override |
virtual std::string | get_size_str () const override |
virtual size_t | get_width () const override |
virtual std::string | str () const override |
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 |
A template for a class implementing operations for a discrete genotype matrix.
Definition at line 20 of file jade.discrete_genotype_matrix.hpp.
|
inherited |
The discrete genotype matrix type.
Definition at line 35 of file jade.genotype_matrix.hpp.
typedef basic_matrix<genotype> jade::basic_discrete_genotype_matrix< TValue >::genotype_matrix_type |
The genotype matrix type.
Definition at line 28 of file jade.discrete_genotype_matrix.hpp.
typedef genotype_matrix_type::initializer_list_type jade::basic_discrete_genotype_matrix< TValue >::initializer_list_type |
The initializer list for the genotype matrix.
Definition at line 39 of file jade.discrete_genotype_matrix.hpp.
|
inherited |
The likelihood genotype matrix type.
Definition at line 38 of file jade.genotype_matrix.hpp.
typedef basic_matrix<value_type> jade::basic_discrete_genotype_matrix< TValue >::matrix_type |
The matrix type.
Definition at line 31 of file jade.discrete_genotype_matrix.hpp.
typedef TValue jade::basic_discrete_genotype_matrix< TValue >::value_type |
The value type.
Definition at line 25 of file jade.discrete_genotype_matrix.hpp.
typedef basic_verification<value_type> jade::basic_discrete_genotype_matrix< TValue >::verification_type |
The verification type.
Definition at line 34 of file jade.discrete_genotype_matrix.hpp.
|
inline |
Initializes a new instance of the class.
Definition at line 44 of file jade.discrete_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 53 of file jade.discrete_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 63 of file jade.discrete_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 73 of file jade.discrete_genotype_matrix.hpp.
|
inlineexplicit |
Initializes a new instance of the class based on the specified values.
values | The two-dimensional values. |
Definition at line 85 of file jade.discrete_genotype_matrix.hpp.
|
inlineoverride |
Definition at line 94 of file jade.discrete_genotype_matrix.hpp.
|
inlineoverride |
Definition at line 102 of file jade.discrete_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 111 of file jade.discrete_genotype_matrix.hpp.
|
pure virtualinherited |
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. |
|
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 220 of file jade.discrete_genotype_matrix.hpp.
|
pure virtualinherited |
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. |
|
inlineoverridevirtual |
q | The Q matrix. |
fa | The F matrix for major alleles. |
fb | The F matrix for minor alleles. |
Definition at line 341 of file jade.discrete_genotype_matrix.hpp.
|
pure virtualinherited |
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. |
|
inlineoverridevirtual |
f_epsilon | The F matrix boundary epsilon. |
Implements jade::basic_genotype_matrix< TValue >.
Definition at line 459 of file jade.discrete_genotype_matrix.hpp.
|
inlineoverridevirtual |
Implements jade::basic_genotype_matrix< TValue >.
Definition at line 514 of file jade.discrete_genotype_matrix.hpp.
|
inline |
Definition at line 506 of file jade.discrete_genotype_matrix.hpp.
|
inlineoverridevirtual |
Implements jade::basic_genotype_matrix< TValue >.
Definition at line 522 of file jade.discrete_genotype_matrix.hpp.
|
inlineoverridevirtual |
Implements jade::basic_genotype_matrix< TValue >.
Definition at line 530 of file jade.discrete_genotype_matrix.hpp.
|
inlineoverridevirtual |
Implements jade::basic_genotype_matrix< TValue >.
Definition at line 538 of file jade.discrete_genotype_matrix.hpp.