holtwinters.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2021, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include "holtwinters_params.h"
9 
10 namespace raft {
11 class handle_t;
12 }
13 
14 namespace ML {
15 namespace HoltWinters {
16 
38 void buffer_size(int n,
39  int batch_size,
40  int frequency,
41  int* start_leveltrend_len,
42  int* start_season_len,
43  int* components_len,
44  int* error_len,
45  int* leveltrend_coef_shift,
46  int* season_coef_shift);
47 
75 void fit(const raft::handle_t& handle,
76  int n,
77  int batch_size,
78  int frequency,
79  int start_periods,
80  ML::SeasonalType seasonal,
81  float epsilon,
82  float* data,
83  float* level_d,
84  float* trend_d,
85  float* season_d,
86  float* error_d);
87 void fit(const raft::handle_t& handle,
88  int n,
89  int batch_size,
90  int frequency,
91  int start_periods,
92  ML::SeasonalType seasonal,
93  double epsilon,
94  double* data,
95  double* level_d,
96  double* trend_d,
97  double* season_d,
98  double* error_d);
99 
123 void forecast(const raft::handle_t& handle,
124  int n,
125  int batch_size,
126  int frequency,
127  int h,
128  ML::SeasonalType seasonal,
129  float* level_d,
130  float* trend_d,
131  float* season_d,
132  float* forecast_d);
133 void forecast(const raft::handle_t& handle,
134  int n,
135  int batch_size,
136  int frequency,
137  int h,
138  ML::SeasonalType seasonal,
139  double* level_d,
140  double* trend_d,
141  double* season_d,
142  double* forecast_d);
143 
144 } // namespace HoltWinters
145 } // namespace ML
void fit(const raft::handle_t &handle, int n, int batch_size, int frequency, int start_periods, ML::SeasonalType seasonal, float epsilon, float *data, float *level_d, float *trend_d, float *season_d, float *error_d)
void 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)
void forecast(const raft::handle_t &handle, int n, int batch_size, int frequency, int h, ML::SeasonalType seasonal, float *level_d, float *trend_d, float *season_d, float *forecast_d)
Definition: dbscan.hpp:18
SeasonalType
Definition: holtwinters_params.h:13
Definition: dbscan.hpp:14