SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlifBase.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) 1999-2008 Gunnar Raetsch
8  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef __PLIF_BASE_H__
12 #define __PLIF_BASE_H__
13 
14 #include <shogun/lib/config.h>
15 
16 #include <shogun/lib/common.h>
17 #include <shogun/base/SGObject.h>
19 
20 namespace shogun
21 {
23 class CPlifBase : public CSGObject
24 {
25  public:
27  CPlifBase() {};
28  virtual ~CPlifBase() {};
29 
38  virtual float64_t lookup_penalty(
39  float64_t p_value, float64_t* svm_values) const =0;
40 
49  virtual float64_t lookup_penalty(
50  int32_t p_value, float64_t* svm_values) const =0;
51 
56  virtual void penalty_clear_derivative()=0;
57 
66  virtual void penalty_add_derivative(
67  float64_t p_value, float64_t* svm_values, float64_t factor)=0 ;
68 
75  virtual float64_t get_max_value() const = 0;
76 
83  virtual float64_t get_min_value() const = 0;
84 
89  virtual void get_used_svms(int32_t* num_svms, int32_t* svm_ids) = 0;
90 
97  virtual bool uses_svm_values() const = 0;
98 
105  virtual int32_t get_max_id() const = 0;
106 
111  virtual void list_plif() const = 0 ;
112 
113 };
114 }
115 #endif

SHOGUN Machine Learning Toolbox - Documentation