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-2009 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 float64_t lookup_penalty(
00035             float64_t p_value, float64_t* svm_values) const =0;
00036 
00045         virtual float64_t lookup_penalty(
00046             int32_t p_value, float64_t* svm_values) const =0;
00047 
00052         virtual void penalty_clear_derivative()=0;
00053 
00061         virtual void penalty_add_derivative(
00062             float64_t p_value, float64_t* svm_values)=0 ;
00063 
00070         virtual float64_t get_max_value() const = 0;
00071 
00078         virtual float64_t get_min_value() const = 0;
00079 
00084         virtual void get_used_svms(int32_t* num_svms, int32_t* svm_ids) = 0;
00085 
00092         virtual bool uses_svm_values() const = 0;
00093 
00100         virtual int32_t get_max_id() const = 0;
00101 
00106         virtual void list_plif() const = 0 ;
00107 
00108 };
00109 #endif

SHOGUN Machine Learning Toolbox - Documentation