| 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 __STATE_SPACE_FORECAST__ |
| 19 |
#define __STATE_SPACE_FORECAST__ |
| 20 |
|
| 21 |
#ifdef __cplusplus |
| 22 |
extern "C" { |
| 23 |
#endif |
| 24 |
|
| 25 |
#include "dw_matrix.h" |
| 26 |
#include "dw_switch.h" |
| 27 |
|
| 28 |
TMatrix dw_state_space_forecast(TMatrix forecast, int horizon, TVector z_initial, TVector *shocks, int *R, TStateModel *model); |
| 29 |
int dw_state_space_forecast_percentile_regime(FILE *f_out, TVector percentiles, int draws, TMatrix posterior_draws, |
| 30 |
int thin, int s, int T, int h, TStateModel *model, int nobs); |
| 31 |
int dw_state_space_forecast_percentile(FILE *f_out, TVector percentiles, int draws, TMatrix posterior_draws, |
| 32 |
int thin, int T, int h, TStateModel *model,int nobs); |
| 33 |
|
| 34 |
void dw_state_space_forecast_command_line(int nargs, char **args, TStateModel *model); |
| 35 |
|
| 36 |
TVector* dw_state_space_mean_conditional_forecast(TVector *F, PRECISION ***y, int h, int t0, TStateModel *model); |
| 37 |
TVector* dw_state_space_mean_unconditional_forecast(TVector *F, int h, int t0, TStateModel *model); |
| 38 |
|
| 39 |
TMatrix Forecast_ConditionalShocks_Special(int horizon, TStateModel *model); |
| 40 |
|
| 41 |
|
| 42 |
#ifdef __cplusplus |
| 43 |
} |
| 44 |
#endif |
| 45 |
#endif |