APEMoST
|
Defines | |
#define | ASSURE_DUMP_ENABLED |
Functions | |
void | mcmc_dump_y_dat (mcmc *m, const gsl_vector *y_dat, const char *filename) |
void | mcmc_open_dump_files (mcmc *m, const char *suffix, int index, char *mode) |
void | mcmc_dump_current (const mcmc *m) |
void | mcmc_dump_close (mcmc *m) |
void | mcmc_dump_flush (const mcmc *m) |
#define ASSURE_DUMP_ENABLED |
Referenced by mcmc_open_dump_files().
void mcmc_dump_close | ( | mcmc * | m | ) |
close output files
References assert, mcmc::files, get_n_par(), mem_free, and r.
Referenced by mcmc_free().
void mcmc_dump_current | ( | const mcmc * | m | ) |
append current parameters to files, unflushed.
References DUMP_FORMAT, mcmc::files, get_n_par(), and mcmc::params.
Referenced by mcmc_append_current_parameters().
void mcmc_dump_flush | ( | const mcmc * | m | ) |
flush output files
References mcmc::files, and get_n_par().
Referenced by report(), and test_write_prob().
void mcmc_dump_y_dat | ( | mcmc * | m, |
const gsl_vector * | y_dat, | ||
const char * | filename | ||
) |
References mcmc::data.
Referenced by test_write().
void mcmc_open_dump_files | ( | mcmc * | m, |
const char * | suffix, | ||
int | index, | ||
char * | mode | ||
) |
open dump files The filenames are created by the scheme paramname+suffix+"-"+index+extension
m | |
suffix | |
index | |
mode | 'w' for writing, 'a' for append, 'r' for reading |
References assert, ASSURE_DUMP_ENABLED, dump_s, mcmc::files, get_n_par(), IFVERBOSE, mem_calloc, mem_free, mcmc::n_par, and mcmc::params_descr.
Referenced by prepare_and_run_sampler(), and test_write_prob().