APEMoST
Functions

apps/normal.c File Reference

#include <signal.h>
#include <gsl/gsl_sf.h>
#include "mcmc.h"
#include "parallel_tempering.h"
#include "debug.h"

Functions

void calc_model (mcmc *m, const gsl_vector *old_values)
void calc_model_for (mcmc *m, const unsigned int i, const double old_value)

Function Documentation

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

Parameters:
m
old_valuesprevious values, or NULL

References get_beta(), mcmc::params, 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

Parameters:
m
iindex of the parameter value that changed
old_valueprevious value of the parameter

References calc_model().