holtwinters_api.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2024, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include <cuml/cuml_api.h>
19 
20 #include <stdio.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
27 
51  int batch_size,
52  int frequency,
53  int* start_leveltrend_len,
54  int* start_season_len,
55  int* components_len,
56  int* error_len,
57  int* leveltrend_coef_shift,
58  int* season_coef_shift);
59 
91  int n,
92  int batch_size,
93  int frequency,
94  int start_periods,
96  float epsilon,
97  float* data,
98  float* level_ptr,
99  float* trend_ptr,
100  float* season_ptr,
101  float* SSE_error_ptr);
103  int n,
104  int batch_size,
105  int frequency,
106  int start_periods,
107  cumlHoltWintersSeasonal_t seasonal,
108  double epsilon,
109  double* data,
110  double* level_ptr,
111  double* trend_ptr,
112  double* season_ptr,
113  double* SSE_error_ptr);
143  int n,
144  int batch_size,
145  int frequency,
146  int h,
147  cumlHoltWintersSeasonal_t seasonal,
148  float* level_ptr,
149  float* trend_ptr,
150  float* season_ptr,
151  float* forecast_ptr);
153  int n,
154  int batch_size,
155  int frequency,
156  int h,
157  cumlHoltWintersSeasonal_t seasonal,
158  double* level_ptr,
159  double* trend_ptr,
160  double* season_ptr,
161  double* forecast_ptr);
164 #ifdef __cplusplus
165 }
166 #endif
int cumlHandle_t
Definition: cuml_api.h:37
cumlError_t
Definition: cuml_api.h:39
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)
Definition: holtwinters_api.cpp:90
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)
Definition: holtwinters_api.cpp:52
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)
Definition: holtwinters_api.cpp:128
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)
Definition: holtwinters_api.cpp:162
cumlHoltWintersSeasonal_t
Definition: holtwinters_api.h:26
@ MULTIPLICATIVE
Definition: holtwinters_api.h:26
@ ADDITIVE
Definition: holtwinters_api.h:26
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.
Definition: holtwinters_api.cpp:24