ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for a class that encodes and decodes parameters for the Nelder-Mead algorithm. This class uses an admixture graph input file. More...
#include <jade.agi_controller.hpp>
Public Member Functions | |
basic_agi_controller (const settings_type &settings) | |
Initializes a new instance of the class based on the specified program settings. More... | |
void | emit_results (const options_type &opts, const simplex_type &simplex, const exit_condition_type &condition) override |
Writes results to standard output and files. More... | |
container_type | init_parameters () override |
Creates and returns the initial set of parameters for the Nelder- Mead algorithm. More... | |
value_type | compute_objfunc (const container_type ¶ms) |
Computes the objective function by decoding the specified Nelder- Mead parameters into a covariance matrix, performing a Cholskey square root, calculating the determinant, computing the inverse, and calling the likelihood function. More... | |
const matrix_type & | get_c () const |
size_t | get_rk () const |
void | log_iteration (const log_args_type &log_args) |
Logs information about the specified context for one iteration of the Nelder-Mead algorithm. More... | |
Protected Member Functions | |
bool | _decode_lower (matrix_type &dst, const container_type &src) override |
Decodes the specified Nelder-Mead container and stores the result into the lower triangle, including the diagonal, of the covariance matrix. More... | |
A template for a class that encodes and decodes parameters for the Nelder-Mead algorithm. This class uses an admixture graph input file.
Definition at line 19 of file jade.agi_controller.hpp.
typedef basic_agi_reader<value_type> jade::basic_agi_controller< TValue >::agi_reader_type |
The admixture graph input reader type.
Definition at line 27 of file jade.agi_controller.hpp.
typedef shunting_yard_type::args_type jade::basic_agi_controller< TValue >::args_type |
The arguments passed to the shunting-yard algorithm.
Definition at line 33 of file jade.agi_controller.hpp.
typedef simplex_type::container_type jade::basic_agi_controller< TValue >::container_type |
The container type for the simplex.
Definition at line 48 of file jade.agi_controller.hpp.
typedef simplex_type::exit_condition_type jade::basic_agi_controller< TValue >::exit_condition_type |
The exit condition type for the simplex.
Definition at line 51 of file jade.agi_controller.hpp.
|
inherited |
The likelihood type.
Definition at line 30 of file jade.controller.hpp.
|
inherited |
The loc arguments for the simplex.
Definition at line 51 of file jade.controller.hpp.
typedef basic_matrix<value_type> jade::basic_agi_controller< TValue >::matrix_type |
The matrix type.
Definition at line 36 of file jade.agi_controller.hpp.
typedef basic_options<value_type> jade::basic_agi_controller< TValue >::options_type |
The options type.
Definition at line 39 of file jade.agi_controller.hpp.
typedef basic_settings<value_type> jade::basic_agi_controller< TValue >::settings_type |
The settings type.
Definition at line 42 of file jade.agi_controller.hpp.
typedef basic_shunting_yard<value_type> jade::basic_agi_controller< TValue >::shunting_yard_type |
The shunting-yard algorithm type.
Definition at line 30 of file jade.agi_controller.hpp.
typedef basic_simplex<value_type> jade::basic_agi_controller< TValue >::simplex_type |
The simplex type.
Definition at line 45 of file jade.agi_controller.hpp.
typedef TValue jade::basic_agi_controller< TValue >::value_type |
The value type.
Definition at line 24 of file jade.agi_controller.hpp.
|
inlineexplicit |
Initializes a new instance of the class based on the specified program settings.
settings | The program settings. |
Definition at line 57 of file jade.agi_controller.hpp.
|
inlineoverrideprotectedvirtual |
Decodes the specified Nelder-Mead container and stores the result into the lower triangle, including the diagonal, of the covariance matrix.
dst | The covariance matrix. |
src | The Nelder-Mead container. |
Implements jade::basic_controller< TValue >.
Definition at line 116 of file jade.agi_controller.hpp.
|
inlineinherited |
Computes the objective function by decoding the specified Nelder- Mead parameters into a covariance matrix, performing a Cholskey square root, calculating the determinant, computing the inverse, and calling the likelihood function.
params | The parameters. |
Definition at line 68 of file jade.controller.hpp.
|
inlineoverridevirtual |
Writes results to standard output and files.
opts | The options. |
simplex | The simplex. |
condition | The context. |
Reimplemented from jade::basic_controller< TValue >.
Definition at line 68 of file jade.agi_controller.hpp.
|
inlineinherited |
Definition at line 156 of file jade.controller.hpp.
|
inlineinherited |
Definition at line 164 of file jade.controller.hpp.
|
inlineoverridevirtual |
Creates and returns the initial set of parameters for the Nelder- Mead algorithm.
Implements jade::basic_controller< TValue >.
Definition at line 98 of file jade.agi_controller.hpp.
|
inlineinherited |
Logs information about the specified context for one iteration of the Nelder-Mead algorithm.
log_args | The Nelder-Mead arguments. |
Definition at line 181 of file jade.controller.hpp.