Typedefs | Enumerations | Functions
holtwinters_api.h File Reference
#include <cuml/cuml_api.h>
#include <stdio.h>
Include dependency graph for holtwinters_api.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum cumlHoltWintersSeasonal_t cumlHoltWintersSeasonal_t
 

Enumerations

enum  cumlHoltWintersSeasonal_t { ADDITIVE , MULTIPLICATIVE }
 

Functions

cumlError_t cumlHoltWinters_buffer_size (int n, int batch_size, int frequency, int *start_leveltrend_len, int *start_season_len, int *components_len, int *error_len, int *leveltrend_coef_shift, int *season_coef_shift)
 Provides buffer sizes for HoltWinters algorithm. More...
 
cumlError_t cumlHoltWintersSp_fit (cumlHandle_t handle, int n, int batch_size, int frequency, int start_periods, cumlHoltWintersSeasonal_t seasonal, float epsilon, float *data, float *level_ptr, float *trend_ptr, float *season_ptr, float *SSE_error_ptr)
 
cumlError_t cumlHoltWintersDp_fit (cumlHandle_t handle, int n, int batch_size, int frequency, int start_periods, cumlHoltWintersSeasonal_t seasonal, double epsilon, double *data, double *level_ptr, double *trend_ptr, double *season_ptr, double *SSE_error_ptr)
 
cumlError_t cumlHoltWintersSp_forecast (cumlHandle_t handle, int n, int batch_size, int frequency, int h, cumlHoltWintersSeasonal_t seasonal, float *level_ptr, float *trend_ptr, float *season_ptr, float *forecast_ptr)
 
cumlError_t cumlHoltWintersDp_forecast (cumlHandle_t handle, int n, int batch_size, int frequency, int h, cumlHoltWintersSeasonal_t seasonal, double *level_ptr, double *trend_ptr, double *season_ptr, double *forecast_ptr)
 

Typedef Documentation

◆ cumlHoltWintersSeasonal_t

Enumeration Type Documentation

◆ cumlHoltWintersSeasonal_t

Enumerator
ADDITIVE 
MULTIPLICATIVE 

Function Documentation

◆ cumlHoltWinters_buffer_size()

cumlError_t cumlHoltWinters_buffer_size ( int  n,
int  batch_size,
int  frequency,
int *  start_leveltrend_len,
int *  start_season_len,
int *  components_len,
int *  error_len,
int *  leveltrend_coef_shift,
int *  season_coef_shift 
)

Provides buffer sizes for HoltWinters algorithm.

Parameters
[in]nn_samples in time-series
[in]batch_sizenumber of time-series in X
[in]frequencynumber of periods in a season of the time-series
[out]start_leveltrend_lenpointer which will hold the length of the level/trend array buffers
[out]start_season_lenpointer which will hold the length of the seasonal array buffer
[out]components_lenpointer which will hold the length of all three components
[out]error_lenpointer which will hold the length of the SSE Error
[out]leveltrend_coef_shiftpointer which will hold the offset to level/trend arrays
[out]season_coef_shiftpointer which will hold the offset to season array
Returns
CUML_SUCCESS on success and other corresponding flags upon any failures.