File: calcBATS.h

package info (click to toggle)
r-cran-forecast 8.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,248 kB
  • sloc: cpp: 975; ansic: 648; sh: 13; makefile: 2
file content (70 lines) | stat: -rw-r--r-- 2,464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef _forecast_CALCBATS
#define _forecast_CALCBATS

/////////////////////////////////////
// if unable to compile, please comment these lines
// #define __GXX_EXPERIMENTAL_CXX0X__ 1

// #ifndef HAVE_ERRNO_T
// typedef int errno_t;
// #endif

// #if __WORDSIZE == 64
// # ifndef __intptr_t_defined
// typedef long int      intptr_t;
// #  define __intptr_t_defined
// # endif
// typedef unsigned long int   uintptr_t;
// #else
// # ifndef __intptr_t_defined
// typedef int         intptr_t;
// #  define __intptr_t_defined
// # endif
// typedef unsigned int      uintptr_t;
// #endif


// #include <inttypes.h>
// #include <stdint.h>
// #include <cstdint>
// #include <errno.h>
// #include <cstddef>

// if unable to compile, please comment these lines
/////////////////////////////////////

#include <RcppArmadillo.h>
#include <cmath>

RcppExport SEXP calcBATS(SEXP ys, SEXP yHats, SEXP wTransposes, SEXP Fs, SEXP xs, SEXP gs, SEXP es ) ;

RcppExport SEXP calcBATSFaster(SEXP ys, SEXP yHats, SEXP wTransposes, SEXP Fs, SEXP xs, SEXP gs, SEXP es, SEXP xNought_s, SEXP sPeriods_s, SEXP betaV, SEXP tau_s, SEXP p_s, SEXP q_s )  ;

RcppExport SEXP calcWTilda(SEXP wTildaTransposes, SEXP Ds) ;

RcppExport SEXP makeBATSWMatrix(SEXP smallPhi_s, SEXP sPeriods_s, SEXP arCoefs_s, SEXP maCoefs_s) ;

RcppExport SEXP makeBATSGMatrix(SEXP alpha_s, SEXP beta_s, SEXP gammaVector_s, SEXP seasonalPeriods_s, SEXP p_s, SEXP q_s) ;

RcppExport SEXP updateFMatrix(SEXP F_s, SEXP smallPhi_s, SEXP alpha_s, SEXP beta_s, SEXP gammaBold_s, SEXP ar_s, SEXP ma_s, SEXP tau_s) ;

RcppExport SEXP updateWtransposeMatrix(SEXP wTranspose_s, SEXP smallPhi_s, SEXP tau_s, SEXP arCoefs_s, SEXP maCoefs_s, SEXP p_s, SEXP q_s) ;

RcppExport SEXP updateGMatrix(SEXP g_s, SEXP gammaBold_s, SEXP alpha_s, SEXP beta_s, SEXP gammaVector_s, SEXP seasonalPeriods_s) ;

//TBATS Functions
RcppExport SEXP makeTBATSWMatrix(SEXP smallPhi_s, SEXP kVector_s, SEXP arCoefs_s, SEXP maCoefs_s, SEXP tau_s) ;

RcppExport SEXP makeCIMatrix(SEXP k_s, SEXP m_s) ;

RcppExport SEXP makeSIMatrix(SEXP k_s, SEXP m_s) ;

RcppExport SEXP makeAIMatrix(SEXP C_s, SEXP S_s, SEXP k_s) ;

RcppExport SEXP updateTBATSGammaBold(SEXP gammaBold_s, SEXP kVector_s, SEXP gammaOne_s, SEXP gammaTwo_s) ;

RcppExport SEXP updateTBATSGMatrix(SEXP g_s, SEXP gammaBold_s, SEXP alpha_s, SEXP beta_s) ;

RcppExport SEXP calcTBATSFaster(SEXP ys, SEXP yHats, SEXP wTransposes, SEXP Fs, SEXP xs, SEXP gs, SEXP es, SEXP xNought_s) ;

#endif