APEMoST
|
Go to the source code of this file.
Defines | |
#define | mod_double(x, div) |
#define | abs_double(x) ((x) < 0 ? -(x) : (x)) |
Functions | |
unsigned int | countlines (const char *filename) |
#define abs_double | ( | x | ) | ((x) < 0 ? -(x) : (x)) |
the value with positive sign.
Referenced by assess_acceptance_rate(), markov_chain_calibrate_alt(), markov_chain_calibrate_linear_regression(), markov_chain_calibrate_multilinear_regression(), markov_chain_calibrate_orig(), and markov_chain_calibrate_quadratic().
#define mod_double | ( | x, | |
div | |||
) |
((x) < 0 ? \ (x) - (div) * (int) ((x) / (div) - 1) : \ (x) - (div) * (int) ((x) / (div)))
a modulo operator for double values
Referenced by do_step_for(), and test_mod().
unsigned int countlines | ( | const char * | filename | ) |
count the lines (
) in the file
filename |
Referenced by mcmc_load_params(), and test_write_prob().