|
APEMoST
|
#include <string.h>#include <stdio.h>#include <libgen.h>#include "mcmc.h"#include "gsl_helper.h"#include "debug.h"Functions | |
| void | init_seed (mcmc *m) |
| mcmc * | mcmc_init (const unsigned int n_pars) |
| mcmc * | mcmc_free (mcmc *m) |
| void | mcmc_check (const mcmc *m) |
Variables | |
| gsl_rng * | r = NULL |
| void init_seed | ( | mcmc * | m | ) |
References r, and mcmc::random.
Referenced by mcmc_init().
| void mcmc_check | ( | const mcmc * | m | ) |
checks the pointers and dimensions
References assert, mcmc::data, mcmc::n_par, mcmc::params, mcmc::params_best, and mcmc::params_step.
Referenced by burn_in(), calibrate_first(), calibrate_rest(), main(), markov_chain_step(), markov_chain_step_for(), mcmc_load_data(), mcmc_reuse_data(), setup_chains(), and test_write_prob().
frees the memory used by the class
x = mcmc_free(x); References mcmc::data, debug, get_n_par(), IFSEGV, mcmc_dump_close(), mem_free, mcmc::params, mcmc::params_accepts, mcmc::params_best, mcmc::params_descr, mcmc::params_max, mcmc::params_min, mcmc::params_rejects, mcmc::params_step, r, and mcmc::random.
Referenced by prepare_and_run_sampler(), test_append(), test_create(), test_load(), test_random(), test_write(), and test_write_prob().
| mcmc* mcmc_init | ( | const unsigned int | n_pars | ) |
Here are the "private" methods of the class and helper functions create class
| n_pars | parameters |
References mcmc::accept, assert, mcmc::data, debug, mcmc::files, IFSEGV, init_seed(), mem_calloc, mem_malloc, mcmc::n_iter, mcmc::n_par, mcmc::params, mcmc::params_accepts, mcmc::params_best, mcmc::params_descr, mcmc::params_max, mcmc::params_min, mcmc::params_rejects, mcmc::params_step, mcmc::prior, mcmc::prob, mcmc::prob_best, and mcmc::reject.
Referenced by mcmc_load_params(), test_append(), and test_create().
| gsl_rng* r = NULL |
Referenced by calc_normalized(), countlines(), dup_vector(), get_accept_rate(), init_seed(), main(), mcmc_dump_close(), mcmc_free(), mcmc_load_params(), and test().
1.7.3