SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SumOne.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Sergey Lisitsyn
8  * Copyright (C) 2012 Sergey Lisitsyn
9  */
10 
11 #ifndef _CSUMONE__H__
12 #define _CSUMONE__H__
13 
14 #include <shogun/lib/config.h>
15 
18 #include <shogun/lib/common.h>
19 
20 #include <stdio.h>
21 
22 namespace shogun
23 {
33 class CSumOne : public CDensePreprocessor<float64_t>
34 {
35  public:
37  CSumOne();
38 
40  virtual ~CSumOne();
41 
43  virtual bool init(CFeatures* features);
45  virtual void cleanup();
47  virtual bool load(FILE* f);
49  virtual bool save(FILE* f);
50 
55 
59 
61  virtual const char* get_name() const { return "SumOne"; }
62 
64  virtual EPreprocessorType get_type() const { return P_SUMONE; }
65 };
66 }
67 #endif

SHOGUN Machine Learning Toolbox - Documentation