CPyramidChi2 Class Reference

Inheritance diagram for CPyramidChi2:

Inheritance graph
[legend]

List of all members.


Detailed Description

Pyramid Kernel over Chi2 matched histograms.

Definition at line 22 of file PyramidChi2.h.


Public Member Functions

 CPyramidChi2 (int32_t size, float64_t width2, int32_t *pyramidlevels2, int32_t numlevels2, int32_t numbinsinhistogram2, float64_t *weights2, int32_t numweights2)
 CPyramidChi2 (CRealFeatures *l, CRealFeatures *r, int32_t size, float64_t width2, int32_t *pyramidlevels2, int32_t numlevels2, int32_t numbinsinhistogram2, float64_t *weights2, int32_t numweights2)
virtual bool init (CFeatures *l, CFeatures *r)
virtual ~CPyramidChi2 ()
virtual void cleanup ()
virtual bool load_init (FILE *src)
virtual bool save_init (FILE *dest)
virtual EKernelType get_kernel_type ()
virtual const char * get_name ()
void setstandardweights ()
bool sanitycheck_weak ()

Protected Member Functions

virtual float64_t compute (int32_t idx_a, int32_t idx_b)

Protected Attributes

float64_t width
int32_t * pyramidlevels
int32_t numlevels
int32_t numbinsinhistogram
float64_tweights
int32_t numweights

Constructor & Destructor Documentation

CPyramidChi2::CPyramidChi2 ( int32_t  size,
float64_t  width2,
int32_t *  pyramidlevels2,
int32_t  numlevels2,
int32_t  numbinsinhistogram2,
float64_t weights2,
int32_t  numweights2 
)

constructor

Parameters:
size size
width2 width2
pyramidlevels2 pyramidlevels2
numlevels2 numlevels2
numbinsinhistogram2 numbinsinhistogram2
weights2 weights2
numweights2 numweights2

Definition at line 18 of file PyramidChi2.cpp.

CPyramidChi2::CPyramidChi2 ( CRealFeatures l,
CRealFeatures r,
int32_t  size,
float64_t  width2,
int32_t *  pyramidlevels2,
int32_t  numlevels2,
int32_t  numbinsinhistogram2,
float64_t weights2,
int32_t  numweights2 
)

constructor

Parameters:
l features lhs
r features rhs
size size
width2 width2
pyramidlevels2 pyramidlevels2
numlevels2 numlevels2
numbinsinhistogram2 numbinsinhistogram2
weights2 weights2
numweights2 numweights2

Definition at line 62 of file PyramidChi2.cpp.

CPyramidChi2::~CPyramidChi2 (  )  [virtual]

Definition at line 85 of file PyramidChi2.cpp.


Member Function Documentation

bool CPyramidChi2::init ( CFeatures l,
CFeatures r 
) [virtual]

init

Parameters:
l features lhs
r reatures rhs

Reimplemented from CSimpleKernel< ST >.

Definition at line 56 of file PyramidChi2.cpp.

void CPyramidChi2::cleanup (  )  [virtual]

cleanup

Reimplemented from CKernel.

Definition at line 39 of file PyramidChi2.cpp.

bool CPyramidChi2::load_init ( FILE *  src  )  [virtual]

load kernel init_data

abstract base method

Parameters:
src file to load from
Returns:
if loading was successful

Implements CKernel.

Definition at line 90 of file PyramidChi2.cpp.

bool CPyramidChi2::save_init ( FILE *  dest  )  [virtual]

save kernel init_data

Parameters:
dest destination file to save to
Returns:
if saving was succesful

Implements CKernel.

Definition at line 95 of file PyramidChi2.cpp.

virtual EKernelType CPyramidChi2::get_kernel_type (  )  [virtual]

return what type of kernel we are Linear,Polynomial, Gaussian,...

Implements CKernel.

Definition at line 86 of file PyramidChi2.h.

virtual const char* CPyramidChi2::get_name (  )  [virtual]

return the name of a kernel

Implements CKernel.

Definition at line 93 of file PyramidChi2.h.

void CPyramidChi2::setstandardweights (  ) 

sets standard weights

Definition at line 215 of file PyramidChi2.cpp.

bool CPyramidChi2::sanitycheck_weak (  ) 

performs a weak check, does not test for correct feature length

Definition at line 101 of file PyramidChi2.cpp.

float64_t CPyramidChi2::compute ( int32_t  idx_a,
int32_t  idx_b 
) [protected, virtual]

compute kernel function for features a and b

Parameters:
idx_a index of feature vector a
idx_b index of feature vector b
Returns:
computed kernel function

Implements CKernel.

Definition at line 155 of file PyramidChi2.cpp.


Member Data Documentation

width

Definition at line 112 of file PyramidChi2.h.

int32_t* CPyramidChi2::pyramidlevels [protected]

pyramidlevels

Definition at line 114 of file PyramidChi2.h.

int32_t CPyramidChi2::numlevels [protected]

length of vector pyramidlevels

Definition at line 117 of file PyramidChi2.h.

int32_t CPyramidChi2::numbinsinhistogram [protected]

numbinsinhistogram

Definition at line 119 of file PyramidChi2.h.

weights

Definition at line 121 of file PyramidChi2.h.

int32_t CPyramidChi2::numweights [protected]

length of vector weights

Definition at line 124 of file PyramidChi2.h.


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

SHOGUN Machine Learning Toolbox - Documentation