APEMoST
|
#include <signal.h>
#include <gsl/gsl_sf.h>
#include "mcmc.h"
#include "parallel_tempering.h"
#include "debug.h"
Defines | |
#define | SIGMA 0.5 |
Functions | |
double | apply_formula (mcmc *m, unsigned int i, double amplitude, double frequency, double phase, double offset) |
void | calc_model (mcmc *m, const gsl_vector *old_values) |
void | calc_model_for (mcmc *m, const unsigned int i, const double old_value) |
#define SIGMA 0.5 |
Referenced by calc_model().
double apply_formula | ( | mcmc * | m, |
unsigned int | i, | ||
double | amplitude, | ||
double | frequency, | ||
double | phase, | ||
double | offset | ||
) |
References mcmc::data.
Referenced by calc_model().
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 apply_formula(), mcmc::data, get_beta(), mcmc::params, set_prob(), and SIGMA.
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().