cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
svlSeries.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Balazs Vagvolgyi
7  Created on: 2007
8 
9  (C) Copyright 2006-2007 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _svlSeries_h
23 #define _svlSeries_h
24 
25 // Always include last!
27 
29 {
30 public:
31  svlSeries();
32  ~svlSeries();
33 
34  void Setup(unsigned int order, double filter);
35  void Reset() { T = 0; PredictedValue = 0.0; }
36  void Push(double value);
37  double Prediction() { return PredictedValue; }
38 
39 private:
40  unsigned int T;
41  unsigned int Order;
42  unsigned int Dimension;
43  double PredictedValue;
44  double Filter, FilterInv;
45  double* Samples;
46  double** Series;
47 
48  void Release();
49 };
50 
51 #endif // _svlSeries_h
52 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: svlSeries.h:28
double Prediction()
Definition: svlSeries.h:37
void Reset()
Definition: svlSeries.h:35
Macros to export the symbols of cisstStereoVision (in a Dll).