Loading [MathJax]/extensions/tex2jax.js
cuML C++ API  23.12
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
holtwinters_api.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2021, 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 #include <stdio.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
26 
50  int batch_size,
51  int frequency,
52  int* start_leveltrend_len,
53  int* start_season_len,
54  int* components_len,
55  int* error_len,
56  int* leveltrend_coef_shift,
57  int* season_coef_shift);
58 
90  int n,
91  int batch_size,
92  int frequency,
93  int start_periods,
95  float epsilon,
96  float* data,
97  float* level_ptr,
98  float* trend_ptr,
99  float* season_ptr,
100  float* SSE_error_ptr);
102  int n,
103  int batch_size,
104  int frequency,
105  int start_periods,
106  cumlHoltWintersSeasonal_t seasonal,
107  double epsilon,
108  double* data,
109  double* level_ptr,
110  double* trend_ptr,
111  double* season_ptr,
112  double* SSE_error_ptr);
142  int n,
143  int batch_size,
144  int frequency,
145  int h,
146  cumlHoltWintersSeasonal_t seasonal,
147  float* level_ptr,
148  float* trend_ptr,
149  float* season_ptr,
150  float* forecast_ptr);
152  int n,
153  int batch_size,
154  int frequency,
155  int h,
156  cumlHoltWintersSeasonal_t seasonal,
157  double* level_ptr,
158  double* trend_ptr,
159  double* season_ptr,
160  double* forecast_ptr);
163 #ifdef __cplusplus
164 }
165 #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:25
@ MULTIPLICATIVE
Definition: holtwinters_api.h:25
@ ADDITIVE
Definition: holtwinters_api.h:25
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