SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
CPlifArray Class Reference

Detailed Description

class PlifArray

Definition at line 23 of file PlifArray.h.

Inheritance diagram for CPlifArray:
Inheritance graph
[legend]

Public Member Functions

 CPlifArray ()
virtual ~CPlifArray ()
void add_plif (CPlifBase *new_plif)
void clear ()
int32_t get_num_plifs ()
virtual float64_t lookup_penalty (float64_t p_value, float64_t *svm_values) const
virtual float64_t lookup_penalty (int32_t p_value, float64_t *svm_values) const
virtual void penalty_clear_derivative ()
virtual void penalty_add_derivative (float64_t p_value, float64_t *svm_values, float64_t factor)
virtual float64_t get_max_value () const
virtual float64_t get_min_value () const
virtual bool uses_svm_values () const
virtual int32_t get_max_id () const
void get_used_svms (int32_t *num_svms, int32_t *svm_ids)
virtual void list_plif () const
virtual const char * get_name () const
- Public Member Functions inherited from CPlifBase
 CPlifBase ()
virtual ~CPlifBase ()
- Public Member Functions inherited from CSGObject
 CSGObject ()
 CSGObject (const CSGObject &orig)
virtual ~CSGObject ()
virtual bool is_generic (EPrimitiveType *generic) const
template<class T >
void set_generic ()
void unset_generic ()
virtual void print_serializable (const char *prefix="")
virtual bool save_serializable (CSerializableFile *file, const char *prefix="")
virtual bool load_serializable (CSerializableFile *file, const char *prefix="")
void set_global_io (SGIO *io)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_global_version ()
SGVector< char * > get_modelsel_names ()
char * get_modsel_param_descr (const char *param_name)
index_t get_modsel_param_index (const char *param_name)

Protected Attributes

DynArray< CPlifBase * > m_array
float64_t max_value
float64_t min_value

Additional Inherited Members

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters
- Protected Member Functions inherited from CSGObject
virtual void load_serializable_pre () throw (ShogunException)
virtual void load_serializable_post () throw (ShogunException)
virtual void save_serializable_pre () throw (ShogunException)
virtual void save_serializable_post () throw (ShogunException)

Constructor & Destructor Documentation

default constructor

Definition at line 25 of file PlifArray.cpp.

~CPlifArray ( )
virtual

Definition at line 32 of file PlifArray.cpp.

Member Function Documentation

void add_plif ( CPlifBase new_plif)

add plif

Parameters
new_plifthe new plif to be added

Definition at line 36 of file PlifArray.cpp.

void clear ( )

clear

Definition at line 55 of file PlifArray.cpp.

int32_t get_max_id ( ) const
virtual

get maximum ID

Returns
maximum ID

Implements CPlifBase.

Definition at line 125 of file PlifArray.cpp.

virtual float64_t get_max_value ( ) const
virtual

get maximum value

Returns
maximum value

Implements CPlifBase.

Definition at line 80 of file PlifArray.h.

virtual float64_t get_min_value ( ) const
virtual

get minimum value

Returns
minumum value

Implements CPlifBase.

Definition at line 89 of file PlifArray.h.

virtual const char* get_name ( ) const
virtual
Returns
object name

Implements CSGObject.

Definition at line 123 of file PlifArray.h.

int32_t get_num_plifs ( )

get number of plifs

Returns
number of plifs

Definition at line 43 of file PlifArray.h.

void get_used_svms ( int32_t *  num_svms,
int32_t *  svm_ids 
)
virtual

get SVM_ids and number of SVMs used

abstract base method

Implements CPlifBase.

Definition at line 133 of file PlifArray.cpp.

virtual void list_plif ( ) const
virtual

print PLIF

lists all PLIFs in array

Implements CPlifBase.

Definition at line 112 of file PlifArray.h.

float64_t lookup_penalty ( float64_t  p_value,
float64_t svm_values 
) const
virtual

lookup penalty float64_t

Parameters
p_valuevalue
svm_valuesSVM values

Implements CPlifBase.

Definition at line 62 of file PlifArray.cpp.

float64_t lookup_penalty ( int32_t  p_value,
float64_t svm_values 
) const
virtual

lookup penalty int32_t

Parameters
p_valuevalue
svm_valuesSVM values

Implements CPlifBase.

Definition at line 78 of file PlifArray.cpp.

void penalty_add_derivative ( float64_t  p_value,
float64_t svm_values,
float64_t  factor 
)
virtual

penalty add derivative

Parameters
p_valuevalue
svm_valuesSVM values
factorweighting the added value

Implements CPlifBase.

Definition at line 110 of file PlifArray.cpp.

void penalty_clear_derivative ( )
virtual

penalty clear derivative

Implements CPlifBase.

Definition at line 104 of file PlifArray.cpp.

bool uses_svm_values ( ) const
virtual

check if plif uses SVM values

Returns
if plif uses SVM values

Implements CPlifBase.

Definition at line 117 of file PlifArray.cpp.

Member Data Documentation

DynArray<CPlifBase*> m_array
protected

plif array

Definition at line 127 of file PlifArray.h.

float64_t max_value
protected

maximum value

Definition at line 129 of file PlifArray.h.

float64_t min_value
protected

minimum value

Definition at line 131 of file PlifArray.h.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation