Public Member Functions | Protected Attributes

CScatterKernelNormalizer Class Reference


Detailed Description

the scatter kernel normalizer

Definition at line 23 of file ScatterKernelNormalizer.h.

Inheritance diagram for CScatterKernelNormalizer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CScatterKernelNormalizer ()
 CScatterKernelNormalizer (float64_t const_diag, float64_t const_offdiag, CLabels *labels, CKernelNormalizer *normalizer=NULL)
virtual ~CScatterKernelNormalizer ()
virtual bool init (CKernel *k)
int32_t get_testing_class ()
void set_testing_class (int32_t c)
virtual float64_t normalize (float64_t value, int32_t idx_lhs, int32_t idx_rhs)
virtual float64_t normalize_lhs (float64_t value, int32_t idx_lhs)
virtual float64_t normalize_rhs (float64_t value, int32_t idx_rhs)
virtual const char * get_name () const

Protected Attributes

float64_t m_const_diag
float64_t m_const_offdiag
CLabelsm_labels
CKernelNormalizerm_normalizer
int32_t m_testing_class

Constructor & Destructor Documentation

default constructor

Definition at line 28 of file ScatterKernelNormalizer.h.

CScatterKernelNormalizer ( float64_t  const_diag,
float64_t  const_offdiag,
CLabels labels,
CKernelNormalizer normalizer = NULL 
)

default constructor

Definition at line 35 of file ScatterKernelNormalizer.h.

virtual ~CScatterKernelNormalizer (  )  [virtual]

default destructor

Definition at line 61 of file ScatterKernelNormalizer.h.


Member Function Documentation

virtual const char* get_name ( void   )  const [virtual]
Returns:
object name

Implements CSGObject.

Definition at line 139 of file ScatterKernelNormalizer.h.

int32_t get_testing_class (  ) 

get testing class

Returns:
testing class (-1 disabled, 0...class otherwise)

Definition at line 79 of file ScatterKernelNormalizer.h.

virtual bool init ( CKernel k  )  [virtual]

initialization of the normalizer

Parameters:
k kernel

Implements CKernelNormalizer.

Definition at line 69 of file ScatterKernelNormalizer.h.

virtual float64_t normalize ( float64_t  value,
int32_t  idx_lhs,
int32_t  idx_rhs 
) [virtual]

normalize the kernel value

Parameters:
value kernel value
idx_lhs index of left hand side vector
idx_rhs index of right hand side vector

Implements CKernelNormalizer.

Definition at line 98 of file ScatterKernelNormalizer.h.

virtual float64_t normalize_lhs ( float64_t  value,
int32_t  idx_lhs 
) [virtual]

normalize only the left hand side vector

Parameters:
value value of a component of the left hand side feature vector
idx_lhs index of left hand side vector

Implements CKernelNormalizer.

Definition at line 122 of file ScatterKernelNormalizer.h.

virtual float64_t normalize_rhs ( float64_t  value,
int32_t  idx_rhs 
) [virtual]

normalize only the right hand side vector

Parameters:
value value of a component of the right hand side feature vector
idx_rhs index of right hand side vector

Implements CKernelNormalizer.

Definition at line 132 of file ScatterKernelNormalizer.h.

void set_testing_class ( int32_t  c  ) 

set testing status

Parameters:
c set class to test for

Definition at line 88 of file ScatterKernelNormalizer.h.


Member Data Documentation

float64_t m_const_diag [protected]

factor to multiply to diagonal elements

Definition at line 170 of file ScatterKernelNormalizer.h.

factor to multiply to off-diagonal elements

Definition at line 172 of file ScatterKernelNormalizer.h.

CLabels* m_labels [protected]

labels

Definition at line 175 of file ScatterKernelNormalizer.h.

labels

Definition at line 178 of file ScatterKernelNormalizer.h.

int32_t m_testing_class [protected]

upon testing which class to test for

Definition at line 181 of file ScatterKernelNormalizer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation