~ubuntu-branches/ubuntu/quantal/gnumeric/quantal

« back to all changes in this revision

Viewing changes to src/tools/analysis-exp-smoothing.h

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2009-06-07 11:10:47 UTC
  • mfrom: (1.1.19 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090607111047-l3rtbzfjxvmi1kx0
Tags: 1.9.8-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Promoted gnumeric-doc to Recommends in gnumeric package for help to be
    installed automatically
  - gnumeric-gtk is a transitional package
  - gnumeric conflicts with gnumeric-gtk << 1.8.3-3ubuntu1
  - call initltool-update in po*
  - remove psiconv support (psiconv is in universe):
    o debian/control: remove B-D on libpsiconv-dev
    o debian/rules: don't pass --with-psiconv to ./configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/*
 
3
 * analysis-histogram.h:
 
4
 *
 
5
 * This is a complete reimplementation of the exponential smoothing tool in 2008
 
6
 *
 
7
 * Author:
 
8
 *   Andreas J. Guelzow  <aguelzow@pyrshep.ca>
 
9
 *
 
10
 * (C) Copyright 2008 by Andreas J. Guelzow  <aguelzow@pyrshep.ca>
 
11
 *
 
12
 *
 
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.
 
17
 *
 
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.
 
22
 *
 
23
 * You should have received a copy of the GNU General Public License
 
24
 * along with this program; if not, write to the Free Software
 
25
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
26
 */
 
27
 
 
28
 
 
29
#ifndef ANALYSIS_EXP_SMOOTHING_H
 
30
#define ANALYSIS_EXP_SMOOTHING_H
 
31
 
 
32
#include "gnumeric.h"
 
33
#include "numbers.h"
 
34
#include "dao.h"
 
35
#include "tools.h"
 
36
#include "analysis-tools.h"
 
37
 
 
38
typedef enum {
 
39
        exp_smoothing_type_ses_h = 0,
 
40
        exp_smoothing_type_ses_r,
 
41
        exp_smoothing_type_des,
 
42
        exp_smoothing_type_ates,
 
43
        exp_smoothing_type_mtes
 
44
} exponential_smoothing_type_t;
 
45
 
 
46
typedef struct {
 
47
        analysis_tools_data_generic_t base;
 
48
        gnm_float damp_fact;
 
49
        gnm_float g_damp_fact;
 
50
        gnm_float s_damp_fact;
 
51
        int s_period;
 
52
        int std_error_flag;
 
53
        int df;
 
54
        gboolean show_graph;
 
55
        exponential_smoothing_type_t es_type;
 
56
} analysis_tools_data_exponential_smoothing_t;
 
57
 
 
58
gboolean analysis_tool_exponential_smoothing_engine (data_analysis_output_t *dao, 
 
59
                                                     gpointer specs,
 
60
                                                     analysis_tool_engine_t selector, 
 
61
                                                     gpointer result);
 
62
 
 
63
 
 
64
#endif