00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef CTA_MODBUILD_SP_H
00026 #define CTA_MODBUILD_SP_H
00027 #include "cta_handles.h"
00028 #include "cta_datatypes.h"
00029 #include "cta_metainfo.h"
00030
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034
00035
00036
00037
00038
00039
00040
00041
00042 void CTA_Modbuild_sp_CreateClass(CTA_ModelClass *modelcls);
00043 void modbuild_sp_create_size(CTA_Handle userdata, int *memsize, int *ierr);
00044 void modbuild_sp_create_init(CTA_Handle *this, CTA_Handle *data, CTA_Handle *hinput, int *ierr);
00045 void modbuild_sp_free(CTA_Handle *data ,int *ierr);
00046 void modbuild_sp_compute(CTA_Handle *data, CTA_Time *timespan, int *ierr);
00047 void modbuild_sp_setstate(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00048 void modbuild_sp_getstate(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00049 void modbuild_sp_axpymodel(CTA_Handle *datay, double *alpha, CTA_Handle *datax, int *ierr);
00050 void modbuild_sp_axpystate(CTA_Handle *data, double *alpha, CTA_TreeVector *statex, int *ierr);
00051 void modbuild_sp_setforc(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00052 void modbuild_sp_getforc(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00053 void modbuild_sp_axpyforc(CTA_Handle *data, CTA_Time *tspan, double *alpha, CTA_TreeVector *statex, int *ierr);
00054 void modbuild_sp_setparam(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00055 void modbuild_sp_getparam(CTA_Handle *data, CTA_TreeVector *state, int *ierr);
00056 void modbuild_sp_axpyparam(CTA_Handle *data, double *alpha, CTA_TreeVector *statex, int *ierr);
00057 void modbuild_sp_getnoisecount(CTA_Handle *data, int* nnoise, int* ierr);
00058 void modbuild_sp_getnoisecovar(CTA_Handle *data, CTA_TreeVector *colsvar, int* ierr);
00059 void modbuild_sp_getobsvalues(CTA_Handle *data, CTA_Time *ttime, CTA_ObsDescr *hdescr, CTA_Vector *vval, int* ierr);
00060 void modbuild_sp_getobsselect(CTA_Handle *data, CTA_Time *ttime, CTA_ObsDescr *hdescr, CTA_String *sselect, int* ierr);
00061 void modbuild_sp_addnoise(CTA_Handle *data, CTA_Time *ttime, int* ierr);
00062 void modbuild_sp_ar1_create(CTA_Handle *hinput, CTA_TreeVector *state, CTA_TreeVector *sbound,
00063 CTA_TreeVector *sparam, int *nnoise, CTA_Time *time0,
00064 CTA_String *snamnoise, CTA_Handle *husrdata, int *ierr);
00065 void modbuild_sp_ar1_covar(CTA_TreeVector *colsvar,int* nnoise, CTA_Handle husrdata,int* ierr);
00066 void modbuild_sp_ar1_compute(CTA_Time *timesspan,CTA_TreeVector *state, CTA_TreeVector *saxpyforc,
00067 BOOL *baddnoise, CTA_TreeVector *sparam, CTA_Handle husrdata,
00068 int* ierr);
00069 void modbuild_sp_ar1_getobsval(CTA_TreeVector *state, CTA_ObsDescr *hdescr, CTA_Vector *vval, CTA_Handle *husrdata, int *ierr);
00070 int modbuild_sp_compute_covars(int nmodel, double *Qar1, double *p0, CTAI_Gridm hgrid);
00071 void CTA_Modbuild_sp_CreateClass(CTA_ModelClass *modelcls);
00072
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076
00077 #endif
00078