CPlif Class Reference

Inheritance diagram for CPlif:

Inheritance graph
[legend]

List of all members.


Detailed Description

class Plif

Definition at line 30 of file Plif.h.


Public Member Functions

 CPlif (INT len=0)
 ~CPlif ()
void init_penalty_struct_cache ()
DREAL lookup_penalty_svm (DREAL p_value, DREAL *d_values) const
DREAL lookup_penalty (DREAL p_value, DREAL *svm_values) const
DREAL lookup_penalty (INT p_value, DREAL *svm_values) const
DREAL lookup (DREAL p_value)
void penalty_clear_derivative ()
void penalty_add_derivative_svm (DREAL p_value, DREAL *svm_values)
void penalty_add_derivative (DREAL p_value, DREAL *svm_values)
const DREALget_cum_derivative (INT &p_len) const
bool set_transform_type (const char *type_str)
const char * get_transform_type ()
void set_id (INT p_id)
INT get_id () const
INT get_max_id () const
void set_use_svm (INT p_use_svm)
INT get_use_svm () const
virtual bool uses_svm_values () const
void set_use_cache (INT p_use_cache)
INT get_use_cache ()
void set_plif (INT p_len, DREAL *p_limits, DREAL *p_penalties)
void set_plif_length (INT p_len)
void set_plif_limits (DREAL *p_limits, INT p_len)
DREALget_plif_limits ()
void set_plif_penalty (DREAL *p_penalties, INT p_len)
DREALget_plif_penalties ()
void set_max_value (DREAL p_max_value)
virtual DREAL get_max_value () const
void set_min_value (DREAL p_min_value)
virtual DREAL 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 (INT *num_svms, INT *svm_ids)
INT get_plif_len ()

Static Public Attributes

static CParallel parallel
static CIO io
static CVersion version

Protected Attributes

INT len
DREALlimits
DREALpenalties
DREALcum_derivatives
DREAL max_value
DREAL min_value
DREALcache
enum ETransformType transform
INT id
char * name
INT use_svm
bool use_cache
bool do_calc

Constructor & Destructor Documentation

CPlif::CPlif ( INT  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

void CPlif::init_penalty_struct_cache (  ) 

init penalty struct cache

Definition at line 77 of file Plif.cpp.

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

lookup penalty SVM

Parameters:
p_value value
d_values d values
Returns:
the penalty

Definition at line 283 of file Plif.cpp.

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

lookup penalty DREAL

Parameters:
p_value value
svm_values SVM values
Returns:
the penalty

Implements CPlifBase.

Definition at line 362 of file Plif.cpp.

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

lookup penalty INT

Parameters:
p_value value
svm_values SVM values
Returns:
the penalty

Implements CPlifBase.

Definition at line 345 of file Plif.cpp.

DREAL CPlif::lookup ( DREAL  p_value  ) 

lookup

Parameters:
p_value value
Returns:
a penalty

Definition at line 72 of file Plif.h.

void CPlif::penalty_clear_derivative (  )  [virtual]

penalty clear derivative

Implements CPlifBase.

Definition at line 437 of file Plif.cpp.

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

penalty add derivative SVM

Parameters:
p_value value
svm_values SVM values

Definition at line 495 of file Plif.cpp.

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

penalty add derivative

Parameters:
p_value value
svm_values SVM values

Implements CPlifBase.

Definition at line 443 of file Plif.cpp.

const DREAL* CPlif::get_cum_derivative ( INT p_len  )  const

get cum derivative

Parameters:
p_len len
Returns:
cum derivative

Definition at line 100 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.

const char* CPlif::get_transform_type (  ) 

get transform type

Returns:
type_str type (string)

Definition at line 117 of file Plif.h.

void CPlif::set_id ( INT  p_id  ) 

set ID

Parameters:
p_id the id to set

Definition at line 139 of file Plif.h.

INT CPlif::get_id (  )  const

get ID

Returns:
the ID

Definition at line 148 of file Plif.h.

INT CPlif::get_max_id (  )  const [virtual]

get maximum ID

Returns:
maximum ID

Implements CPlifBase.

Definition at line 157 of file Plif.h.

void CPlif::set_use_svm ( INT  p_use_svm  ) 

set use SVM

Parameters:
p_use_svm if SVM shall be used

Definition at line 166 of file Plif.h.

INT CPlif::get_use_svm (  )  const

get use SVM

Returns:
if SVM is used

Definition at line 177 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 186 of file Plif.h.

void CPlif::set_use_cache ( INT  p_use_cache  ) 

set use cache

Parameters:
p_use_cache if cache shall be used

Definition at line 195 of file Plif.h.

INT CPlif::get_use_cache (  ) 

get use cache

Returns:
if cache is used

Definition at line 206 of file Plif.h.

void CPlif::set_plif ( INT  p_len,
DREAL p_limits,
DREAL 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 219 of file Plif.h.

void CPlif::set_plif_length ( INT  p_len  ) 

set plif length

Parameters:
p_len len

Definition at line 245 of file Plif.h.

void CPlif::set_plif_limits ( DREAL p_limits,
INT  p_len 
)

set plif limits

Parameters:
p_limits limits
p_len len

Definition at line 273 of file Plif.h.

DREAL* CPlif::get_plif_limits (  ) 

get Plif limits

Returns:
limits

Definition at line 289 of file Plif.h.

void CPlif::set_plif_penalty ( DREAL p_penalties,
INT  p_len 
)

set plif penalty

Parameters:
p_penalties penalties
p_len len

Definition at line 299 of file Plif.h.

DREAL* CPlif::get_plif_penalties (  ) 

get plif penalty

Returns:
plif penalty

Definition at line 314 of file Plif.h.

void CPlif::set_max_value ( DREAL  p_max_value  ) 

set maximum value

Parameters:
p_max_value maximum value

Definition at line 322 of file Plif.h.

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

get maximum value

Returns:
maximum value

Implements CPlifBase.

Definition at line 333 of file Plif.h.

void CPlif::set_min_value ( DREAL  p_min_value  ) 

set minimum value

Parameters:
p_min_value minimum value

Definition at line 342 of file Plif.h.

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

get minimum value

Returns:
minimum value

Implements CPlifBase.

Definition at line 353 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.

char* CPlif::get_name (  )  const

get name

Returns:
name

Definition at line 368 of file Plif.h.

bool CPlif::get_do_calc (  ) 

get do calc

Returns:
if calc shall be done

Definition at line 550 of file Plif.cpp.

void CPlif::set_do_calc ( bool  b  ) 

set do calc

Parameters:
b if calc shall be done

Definition at line 554 of file Plif.cpp.

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

get SVM_ids and number of SVMs used

Implements CPlifBase.

Definition at line 541 of file Plif.cpp.

INT CPlif::get_plif_len (  ) 

get plif len

Returns:
plif len

Definition at line 402 of file Plif.h.


Member Data Documentation

INT CPlif::len [protected]

len

Definition at line 409 of file Plif.h.

DREAL* CPlif::limits [protected]

limits

Definition at line 411 of file Plif.h.

DREAL* CPlif::penalties [protected]

penalties

Definition at line 413 of file Plif.h.

cum derivatives

Definition at line 415 of file Plif.h.

DREAL CPlif::max_value [protected]

maximum value

Definition at line 417 of file Plif.h.

DREAL CPlif::min_value [protected]

minimum value

Definition at line 419 of file Plif.h.

DREAL* CPlif::cache [protected]

cache

Definition at line 421 of file Plif.h.

enum ETransformType CPlif::transform [protected]

transform type

Definition at line 423 of file Plif.h.

INT CPlif::id [protected]

id

Definition at line 425 of file Plif.h.

char* CPlif::name [protected]

name

Definition at line 427 of file Plif.h.

INT CPlif::use_svm [protected]

if SVM shall be used

Definition at line 429 of file Plif.h.

bool CPlif::use_cache [protected]

if cache shall be used

Definition at line 431 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 435 of file Plif.h.

CParallel CSGObject::parallel [static, inherited]

Definition at line 105 of file SGObject.h.

CIO CSGObject::io [static, inherited]

Definition at line 106 of file SGObject.h.

CVersion CSGObject::version [static, inherited]

Definition at line 107 of file SGObject.h.


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

SHOGUN Machine Learning Toolbox - Documentation