![]() |
ʻ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 a user-specified Newick tree. More...
#include <jade.tree_controller.hpp>
Inheritance diagram for jade::basic_tree_controller< TValue >:
Collaboration diagram for jade::basic_tree_controller< TValue >:Public Member Functions | |
| basic_tree_controller (const settings_type &settings) | |
| Initializes a new instance of the class based on the specified program settings. More... | |
| virtual 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... | |
| virtual 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 | |
| virtual 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 a user-specified Newick tree.
Definition at line 20 of file jade.tree_controller.hpp.
| typedef simplex_type::container_type jade::basic_tree_controller< TValue >::container_type |
The container type for the simplex.
Definition at line 52 of file jade.tree_controller.hpp.
| typedef simplex_type::exit_condition_type jade::basic_tree_controller< TValue >::exit_condition_type |
The exit condition type for the simplex.
Definition at line 55 of file jade.tree_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_tree_controller< TValue >::matrix_type |
The matrix type.
Definition at line 28 of file jade.tree_controller.hpp.
| typedef basic_options<value_type> jade::basic_tree_controller< TValue >::options_type |
The options type.
Definition at line 31 of file jade.tree_controller.hpp.
| typedef basic_tree_path<value_type> jade::basic_tree_controller< TValue >::path_type |
The path type.
Definition at line 37 of file jade.tree_controller.hpp.
| typedef basic_rerooted_tree<value_type> jade::basic_tree_controller< TValue >::rerooted_tree_type |
The rerooted tree type.
Definition at line 43 of file jade.tree_controller.hpp.
| typedef basic_settings<value_type> jade::basic_tree_controller< TValue >::settings_type |
The settings type.
Definition at line 34 of file jade.tree_controller.hpp.
| typedef basic_simplex<value_type> jade::basic_tree_controller< TValue >::simplex_type |
The simplex type.
Definition at line 40 of file jade.tree_controller.hpp.
| typedef std::unique_ptr<unrooted_tree_type> jade::basic_tree_controller< TValue >::unrooted_tree_ptr_type |
The pointer to an unrooted tree type.
Definition at line 49 of file jade.tree_controller.hpp.
| typedef basic_newick_node<value_type> jade::basic_tree_controller< TValue >::unrooted_tree_type |
The unrooted tree type.
Definition at line 46 of file jade.tree_controller.hpp.
| typedef TValue jade::basic_tree_controller< TValue >::value_type |
The value type.
Definition at line 25 of file jade.tree_controller.hpp.
|
inlineexplicit |
Initializes a new instance of the class based on the specified program settings.
| settings | The program settings. |
Definition at line 61 of file jade.tree_controller.hpp.
Here is the call graph for this function:
|
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 153 of file jade.tree_controller.hpp.
Here is the call graph for this function:
|
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.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 96 of file jade.tree_controller.hpp.
Here is the call graph for this function:
|
inlineinherited |
Definition at line 156 of file jade.controller.hpp.
Here is the caller graph for this function:
|
inlineinherited |
Definition at line 164 of file jade.controller.hpp.
Here is the caller graph for this function:
|
inlineoverridevirtual |
Creates and returns the initial set of parameters for the Nelder- Mead algorithm.
Implements jade::basic_controller< TValue >.
Definition at line 139 of file jade.tree_controller.hpp.
Here is the call graph for this function:
|
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.
Here is the call graph for this function: