PlifBase.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 1999-2008 Gunnar Raetsch
00008  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #ifndef __PLIF_BASE_H__
00012 #define __PLIF_BASE_H__
00013 
00014 #include "lib/common.h"
00015 #include "base/SGObject.h"
00016 #include "lib/Mathematics.h"
00017 
00019 class CPlifBase : public CSGObject
00020 {
00021     public:
00023         CPlifBase() {};
00024         virtual ~CPlifBase() {};
00025 
00034         virtual DREAL lookup_penalty(DREAL p_value, DREAL* svm_values) const =0;
00035 
00044         virtual DREAL lookup_penalty(INT p_value, DREAL* svm_values) const =0;
00045 
00050         virtual void penalty_clear_derivative()=0;
00051 
00059         virtual void penalty_add_derivative(DREAL p_value, DREAL* svm_values)=0 ;
00060 
00067         virtual DREAL get_max_value() const = 0;
00068 
00075         virtual DREAL get_min_value() const = 0;
00076 
00081         virtual void get_used_svms(INT* num_svms, INT* svm_ids) = 0;
00082 
00089         virtual bool uses_svm_values() const = 0;
00090 
00097         virtual INT get_max_id() const = 0;
00098 };
00099 #endif

SHOGUN Machine Learning Toolbox - Documentation