Compilation: fix up tools includes.
[gnumeric.git] / src / tools / analysis-exp-smoothing.h
blob69b09460516ed41e320b861d3a7b2d241e509e52
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * analysis-histogram.h:
5 * This is a complete reimplementation of the exponential smoothing tool in 2008
7 * Author:
8 * Andreas J. Guelzow <aguelzow@pyrshep.ca>
10 * (C) Copyright 2008 by Andreas J. Guelzow <aguelzow@pyrshep.ca>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, see <https://www.gnu.org/licenses/>.
28 #ifndef ANALYSIS_EXP_SMOOTHING_H
29 #define ANALYSIS_EXP_SMOOTHING_H
31 #include "gnumeric.h"
32 #include "numbers.h"
33 #include <tools/dao.h>
34 #include "tools.h"
35 #include "analysis-tools.h"
37 typedef enum {
38 exp_smoothing_type_ses_h = 0,
39 exp_smoothing_type_ses_r,
40 exp_smoothing_type_des,
41 exp_smoothing_type_ates,
42 exp_smoothing_type_mtes
43 } exponential_smoothing_type_t;
45 typedef struct {
46 analysis_tools_data_generic_t base;
47 gnm_float damp_fact;
48 gnm_float g_damp_fact;
49 gnm_float s_damp_fact;
50 int s_period;
51 int std_error_flag;
52 int df;
53 gboolean show_graph;
54 exponential_smoothing_type_t es_type;
55 } analysis_tools_data_exponential_smoothing_t;
57 gboolean analysis_tool_exponential_smoothing_engine (GOCmdContext *gcc, data_analysis_output_t *dao,
58 gpointer specs,
59 analysis_tool_engine_t selector,
60 gpointer result);
63 #endif