|
APEMoST
|
#include <string.h>#include <stdio.h>#include <libgen.h>#include "mcmc.h"#include "mcmc_internal.h"#include "gsl_helper.h"#include <gsl/gsl_rng.h>#include "debug.h"#include "utils.h"Defines | |
| #define | MAX_LINE_LENGTH 256 |
| #define | IFDEBUGPARSER if(0) |
Functions | |
| char * | my_strdup (const char *s) |
| void | mcmc_load_data (mcmc *m, const char *datafilename) |
| void | mcmc_reuse_data (mcmc *m, const mcmc *m_orig) |
| mcmc * | mcmc_load_params (const char *filename) |
| mcmc * | mcmc_load (const char *filename, const char *datafilename) |
| #define IFDEBUGPARSER if(0) |
Referenced by mcmc_load_data(), mcmc_load_params(), and mcmc_reuse_data().
| #define MAX_LINE_LENGTH 256 |
| mcmc* mcmc_load | ( | const char * | filename, |
| const char * | datafilename | ||
| ) |
create and initialize a mcmc class using the configuration given in
| filename | file containing the model parameters |
| datafilename | x/y observed data |
References mcmc_load_data(), and mcmc_load_params().
Referenced by test_load(), test_random(), test_write(), and test_write_prob().
| void mcmc_load_data | ( | mcmc * | m, |
| const char * | datafilename | ||
| ) |
loads the data from the given file as x/y values
| m | |
| datafilename |
References dump_s, IFDEBUGPARSER, and mcmc_check().
Referenced by main(), mcmc_load(), and setup_chains().
| mcmc* mcmc_load_params | ( | const char * | filename | ) |
create and initialize a mcmc class using the configuration given in
| filename | file containing the model parameters |
References assert, countlines(), dump_i, IFDEBUGPARSER, mcmc_init(), openfile(), and r.
Referenced by main(), mcmc_load(), and setup_chains().
reference to another object for x and y-data.
| m | the object to fill |
| m_orig | the object with loaded data |
References assert, mcmc::data, debug, IFDEBUGPARSER, and mcmc_check().
Referenced by setup_chains().
| char* my_strdup | ( | const char * | s | ) |
References mem_calloc.
1.7.3