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]

List of all members.

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

Protected Attributes

DynArray< CPlifBase * > m_array
float64_t max_value
float64_t min_value

Constructor & Destructor Documentation

CPlifArray (  ) 

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_plif the 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 ( void   )  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_value value
svm_values SVM 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_value value
svm_values SVM 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_value value
svm_values SVM values
factor weighting 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation