SHOGUN  v2.0.0
 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/common.h>
15 #include <shogun/base/SGObject.h>
17 
18 namespace shogun
19 {
21 class CPlifBase : public CSGObject
22 {
23  public:
25  CPlifBase() {};
26  virtual ~CPlifBase() {};
27 
36  virtual float64_t lookup_penalty(
37  float64_t p_value, float64_t* svm_values) const =0;
38 
47  virtual float64_t lookup_penalty(
48  int32_t p_value, float64_t* svm_values) const =0;
49 
54  virtual void penalty_clear_derivative()=0;
55 
64  virtual void penalty_add_derivative(
65  float64_t p_value, float64_t* svm_values, float64_t factor)=0 ;
66 
73  virtual float64_t get_max_value() const = 0;
74 
81  virtual float64_t get_min_value() const = 0;
82 
87  virtual void get_used_svms(int32_t* num_svms, int32_t* svm_ids) = 0;
88 
95  virtual bool uses_svm_values() const = 0;
96 
103  virtual int32_t get_max_id() const = 0;
104 
109  virtual void list_plif() const = 0 ;
110 
111 };
112 }
113 #endif

SHOGUN Machine Learning Toolbox - Documentation