Main Page | Class Hierarchy | Class List | File List | Class Members

WDKDataClass Class Reference

#include <wdk.h>

Collaboration diagram for WDKDataClass:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WDKDataClass (const char *aS)
string Serialize ()
RealType operator * (const WDKDataClass &aInstance) const

Public Attributes

RealType mNorm
RealType mInverseSquaredNorm

Protected Member Functions

void Optimize ()
void ComputeNormalizationFactor ()
RealType Product (const WDKDataClass &aInstance) const

Protected Attributes

DotSparseVectorClass< IndexConcreteType,
PartClass
mPart
string mSerialized

Friends

ostream & operator<< (ostream &out, const WDKDataClass &data)
istream & operator>> (istream &in, WDKDataClass &data) throw (exception)

Detailed Description

WDKDataClass manages a sparse vector of parts.


Constructor & Destructor Documentation

WDKDataClass::WDKDataClass const char *  aS  )  [inline]
 

WDKDataClass takes in input a formatted string (see Introductory documentation for an explanation of the format) parses it and builds an optimized data structure to perform the weighted decompositional kernel.

Here is the call graph for this function:


Member Function Documentation

void WDKDataClass::ComputeNormalizationFactor  )  [inline, protected]
 

Computes and stores in member variables the Norm and the 1/sqrt(Norm) for efficiency.

Here is the call graph for this function:

RealType WDKDataClass::operator * const WDKDataClass aInstance  )  const [inline]
 

Returns the kernel between two data objects that can be one of the dot product or the histogram intersection kernel.

Here is the call graph for this function:

void WDKDataClass::Optimize  )  [inline, protected]
 

Optimize merges all parts with same part type (selector) for a faster computation of the kernel

Here is the call graph for this function:

RealType WDKDataClass::Product const WDKDataClass aInstance  )  const [inline, protected]
 

Product returns the non normalized kernel

string WDKDataClass::Serialize  )  [inline]
 

Serialize returns the input data in its string format previous of any optimization for output purposes


Member Data Documentation

DotSparseVectorClass<IndexConcreteType,PartClass> WDKDataClass::mPart [protected]
 

Sparse vector of Parts data structures

string WDKDataClass::mSerialized [protected]
 

String representation of data


The documentation for this class was generated from the following file:
Generated on Thu Aug 4 18:04:02 2005 for WeightedDecompositionalKernel by  doxygen 1.4.4