| 1 |
/* |
| 2 |
* Copyright (C) 1996-2011 Daniel Waggoner and Tao Zha |
| 3 |
* |
| 4 |
* This free software: you can redistribute it and/or modify |
| 5 |
* it under the terms of the GNU General Public License as published by |
| 6 |
* the Free Software Foundation, either version 3 of the License, or |
| 7 |
* (at your option) any later version. |
| 8 |
* |
| 9 |
* It is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
* GNU General Public License for more details. |
| 13 |
* |
| 14 |
* If you did not received a copy of the GNU General Public License |
| 15 |
* with this software, see <http://www.gnu.org/licenses/>. |
| 16 |
*/ |
| 17 |
|
| 18 |
#ifndef __METROPOLIS_SIMULATION__ |
| 19 |
#define __METROPOLIS_SIMULATION__ |
| 20 |
|
| 21 |
void dw_Simulate_command_line(int n_args, char **args, TStateModel *model, TVector start_value, int generator_init); |
| 22 |
int SetUpMetropolisSimulation(int n_args, char **args, char *tag, TStateModel *model, int default_period); |
| 23 |
int Simulate(int burn_in, int draws, int thin, int period, TStateModel *model, FILE *f_out); |
| 24 |
|
| 25 |
#define READ_METROPOLIS_INFO 1 |
| 26 |
#define HESSIAN_CALIBRATION 2 |
| 27 |
#define DIAGONAL_CALIBRATION 4 |
| 28 |
#define TWO_PASS 8 |
| 29 |
#define SPECIAL_CALIBRATION 16 |
| 30 |
#define VARIANCE_CALIBRATION 32 |
| 31 |
#define PRIOR_CALIBRATION 64 |
| 32 |
int WriteMetropolisThetaInfo(char *filename, char *tag, int type, PRECISION center_s, int period_s, int max_period_s, |
| 33 |
PRECISION center_a, int period_a, int max_period_a, int ndraws, int elapsed_time, |
| 34 |
TStateModel *model); |
| 35 |
|
| 36 |
#endif |
| 37 |
|
| 38 |
/* Static functions |
| 39 |
void SetupDirections(TVector *direction, int n) |
| 40 |
*/ |