APEMoST
|
#include <gsl/gsl_sf.h>
#include "mcmc.h"
#include "parallel_tempering.h"
Data Structures | |
struct | Problem |
Functions | |
void | set_function (double(*LogLike)(mcmc *m, const gsl_vector *old_values), double(*Prior)(mcmc *m, const gsl_vector *old_values)) |
void | calc_model (mcmc *m, const gsl_vector *old_values) |
void | calc_model_for (mcmc *m, const unsigned int i, const double old_value) |
Variables | |
struct Problem | p |
void calc_model | ( | mcmc * | m, |
const gsl_vector * | old_values | ||
) |
update the model according to the new parameter values and recalculate the probability for the model
m | |
old_values | previous values, or NULL |
References get_beta(), get_prior(), Problem::LogLike, p, Problem::Prior, set_prior(), and set_prob().
void calc_model_for | ( | mcmc * | m, |
const unsigned int | i, | ||
const double | old_value | ||
) |
update the model as the new parameter value i changed and recalculate the probability for the model
m | |
i | index of the parameter value that changed |
old_value | previous value of the parameter |
References calc_model().
void set_function | ( | double(*)(mcmc *m, const gsl_vector *old_values) | LogLike, |
double(*)(mcmc *m, const gsl_vector *old_values) | Prior | ||
) |
References Problem::LogLike, p, and Problem::Prior.
Referenced by calc_model(), linreg_n(), main(), and set_function().