CPlif Class Reference

Inheritance diagram for CPlif:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CPlif (int32_t len=0)
 ~CPlif ()
void init_penalty_struct_cache ()
float64_t lookup_penalty_svm (float64_t p_value, float64_t *d_values) const
float64_t lookup_penalty (float64_t p_value, float64_t *svm_values) const
float64_t lookup_penalty (int32_t p_value, float64_t *svm_values) const
float64_t lookup (float64_t p_value)
void penalty_clear_derivative ()
void penalty_add_derivative_svm (float64_t p_value, float64_t *svm_values)
void penalty_add_derivative (float64_t p_value, float64_t *svm_values)
const float64_tget_cum_derivative (int32_t &p_len) const
bool set_transform_type (const char *type_str)
const char * get_transform_type ()
void set_id (int32_t p_id)
int32_t get_id () const
int32_t get_max_id () const
void set_use_svm (int32_t p_use_svm)
int32_t get_use_svm () const
virtual bool uses_svm_values () const
void set_use_cache (int32_t p_use_cache)
int32_t get_use_cache ()
void set_plif (int32_t p_len, float64_t *p_limits, float64_t *p_penalties)
void set_plif_length (int32_t p_len)
void set_plif_limits (float64_t *p_limits, int32_t p_len)
float64_tget_plif_limits ()
void set_plif_penalty (float64_t *p_penalties, int32_t p_len)
float64_tget_plif_penalties ()
void set_max_value (float64_t p_max_value)
virtual float64_t get_max_value () const
void set_min_value (float64_t p_min_value)
virtual float64_t get_min_value () const
void set_name (char *p_name)
char * get_name () const
bool get_do_calc ()
void set_do_calc (bool b)
void get_used_svms (int32_t *num_svms, int32_t *svm_ids)
int32_t get_plif_len ()

Protected Attributes

int32_t len
float64_tlimits
float64_tpenalties
float64_tcum_derivatives
float64_t max_value
float64_t min_value
float64_tcache
enum ETransformType transform
int32_t id
char * name
int32_t use_svm
bool use_cache
bool do_calc


Detailed Description

class Plif

Definition at line 30 of file Plif.h.


Constructor & Destructor Documentation

CPlif::CPlif ( int32_t  len = 0  ) 

constructor

Parameters:
len len

Definition at line 24 of file Plif.cpp.

CPlif::~CPlif (  ) 

Definition at line 44 of file Plif.cpp.


Member Function Documentation

const float64_t* CPlif::get_cum_derivative ( int32_t &  p_len  )  const

get cum derivative

Parameters:
p_len len
Returns:
cum derivative

Definition at line 103 of file Plif.h.

bool CPlif::get_do_calc (  ) 

get do calc

Returns:
if calc shall be done

Definition at line 554 of file Plif.cpp.

int32_t CPlif::get_id (  )  const

get ID

Returns:
the ID

Definition at line 151 of file Plif.h.

int32_t CPlif::get_max_id (  )  const [virtual]

get maximum ID

Returns:
maximum ID

Implements CPlifBase.

Definition at line 160 of file Plif.h.

virtual float64_t CPlif::get_max_value (  )  const [virtual]

get maximum value

Returns:
maximum value

Implements CPlifBase.

Definition at line 337 of file Plif.h.

virtual float64_t CPlif::get_min_value (  )  const [virtual]

get minimum value

Returns:
minimum value

Implements CPlifBase.

Definition at line 357 of file Plif.h.

char* CPlif::get_name (  )  const

get name

Returns:
name

Definition at line 372 of file Plif.h.

int32_t CPlif::get_plif_len (  ) 

get plif len

Returns:
plif len

Definition at line 406 of file Plif.h.

float64_t* CPlif::get_plif_limits (  ) 

get Plif limits

Returns:
limits

Definition at line 293 of file Plif.h.

float64_t* CPlif::get_plif_penalties (  ) 

get plif penalty

Returns:
plif penalty

Definition at line 318 of file Plif.h.

const char* CPlif::get_transform_type (  ) 

get transform type

Returns:
type_str type (string)

Definition at line 120 of file Plif.h.

int32_t CPlif::get_use_cache (  ) 

get use cache

Returns:
if cache is used

Definition at line 209 of file Plif.h.

int32_t CPlif::get_use_svm (  )  const

get use SVM

Returns:
if SVM is used

Definition at line 180 of file Plif.h.

void CPlif::get_used_svms ( int32_t *  num_svms,
int32_t *  svm_ids 
) [virtual]

get SVM_ids and number of SVMs used

Implements CPlifBase.

Definition at line 544 of file Plif.cpp.

void CPlif::init_penalty_struct_cache (  ) 

init penalty struct cache

Definition at line 78 of file Plif.cpp.

float64_t CPlif::lookup ( float64_t  p_value  ) 

lookup

Parameters:
p_value value
Returns:
a penalty

Definition at line 74 of file Plif.h.

float64_t CPlif::lookup_penalty ( int32_t  p_value,
float64_t svm_values 
) const [virtual]

lookup penalty int32_t

Parameters:
p_value value
svm_values SVM values
Returns:
the penalty

Implements CPlifBase.

Definition at line 347 of file Plif.cpp.

float64_t CPlif::lookup_penalty ( float64_t  p_value,
float64_t svm_values 
) const [virtual]

lookup penalty float64_t

Parameters:
p_value value
svm_values SVM values
Returns:
the penalty

Implements CPlifBase.

Definition at line 364 of file Plif.cpp.

float64_t CPlif::lookup_penalty_svm ( float64_t  p_value,
float64_t d_values 
) const

lookup penalty SVM

Parameters:
p_value value
d_values d values
Returns:
the penalty

Definition at line 284 of file Plif.cpp.

void CPlif::penalty_add_derivative ( float64_t  p_value,
float64_t svm_values 
) [virtual]

penalty add derivative

Parameters:
p_value value
svm_values SVM values

Implements CPlifBase.

Definition at line 445 of file Plif.cpp.

void CPlif::penalty_add_derivative_svm ( float64_t  p_value,
float64_t svm_values 
)

penalty add derivative SVM

Parameters:
p_value value
svm_values SVM values

Definition at line 497 of file Plif.cpp.

void CPlif::penalty_clear_derivative (  )  [virtual]

penalty clear derivative

Implements CPlifBase.

Definition at line 439 of file Plif.cpp.

void CPlif::set_do_calc ( bool  b  ) 

set do calc

Parameters:
b if calc shall be done

Definition at line 559 of file Plif.cpp.

void CPlif::set_id ( int32_t  p_id  ) 

set ID

Parameters:
p_id the id to set

Definition at line 142 of file Plif.h.

void CPlif::set_max_value ( float64_t  p_max_value  ) 

set maximum value

Parameters:
p_max_value maximum value

Definition at line 326 of file Plif.h.

void CPlif::set_min_value ( float64_t  p_min_value  ) 

set minimum value

Parameters:
p_min_value minimum value

Definition at line 346 of file Plif.h.

void CPlif::set_name ( char *  p_name  ) 

set name

Parameters:
p_name name

Definition at line 102 of file Plif.cpp.

void CPlif::set_plif ( int32_t  p_len,
float64_t p_limits,
float64_t p_penalties 
)

set plif

for swig use set_plif_len, set_plif_limits, set_plif_penalty

Parameters:
p_len len
p_limits limit
p_penalties penalties

Definition at line 222 of file Plif.h.

void CPlif::set_plif_length ( int32_t  p_len  ) 

set plif length

Parameters:
p_len len

Definition at line 249 of file Plif.h.

void CPlif::set_plif_limits ( float64_t p_limits,
int32_t  p_len 
)

set plif limits

Parameters:
p_limits limits
p_len len

Definition at line 277 of file Plif.h.

void CPlif::set_plif_penalty ( float64_t p_penalties,
int32_t  p_len 
)

set plif penalty

Parameters:
p_penalties penalties
p_len len

Definition at line 303 of file Plif.h.

bool CPlif::set_transform_type ( const char *  type_str  ) 

set transform type

Parameters:
type_str type (string)
Returns:
if setting was succesful

Definition at line 53 of file Plif.cpp.

void CPlif::set_use_cache ( int32_t  p_use_cache  ) 

set use cache

Parameters:
p_use_cache if cache shall be used

Definition at line 198 of file Plif.h.

void CPlif::set_use_svm ( int32_t  p_use_svm  ) 

set use SVM

Parameters:
p_use_svm if SVM shall be used

Definition at line 169 of file Plif.h.

virtual bool CPlif::uses_svm_values (  )  const [virtual]

check if plif uses SVM values

Returns:
if plif uses SVM values

Implements CPlifBase.

Definition at line 189 of file Plif.h.


Member Data Documentation

float64_t* CPlif::cache [protected]

cache

Definition at line 425 of file Plif.h.

cum derivatives

Definition at line 419 of file Plif.h.

bool CPlif::do_calc [protected]

do calc if this is true: lookup_penalty behaves normal else: lookup_penalty returns the p_value untransformed

Definition at line 439 of file Plif.h.

int32_t CPlif::id [protected]

id

Definition at line 429 of file Plif.h.

int32_t CPlif::len [protected]

len

Definition at line 413 of file Plif.h.

float64_t* CPlif::limits [protected]

limits

Definition at line 415 of file Plif.h.

maximum value

Definition at line 421 of file Plif.h.

minimum value

Definition at line 423 of file Plif.h.

char* CPlif::name [protected]

name

Definition at line 431 of file Plif.h.

penalties

Definition at line 417 of file Plif.h.

enum ETransformType CPlif::transform [protected]

transform type

Definition at line 427 of file Plif.h.

bool CPlif::use_cache [protected]

if cache shall be used

Definition at line 435 of file Plif.h.

int32_t CPlif::use_svm [protected]

if SVM shall be used

Definition at line 433 of file Plif.h.


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

SHOGUN Machine Learning Toolbox - Documentation