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

PLearn::SDBVMFieldNormalize Class Reference

Normalize the field (subtract the mean then divide by standard dev). More...

#include <SDBVMat.h>

Inheritance diagram for PLearn::SDBVMFieldNormalize:

Inheritance graph
[legend]
Collaboration diagram for PLearn::SDBVMFieldNormalize:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SDBVMFieldNormalize (SDBVMSource source, real missing_values_mapping=MISSING_VALUE)
virtual void convertField (const SDBWithStats &sdb, const Row &row, const Vec &output) const
virtual int fieldWidth () const
 Width that the field occupies in the VMat.


Private Types

typedef SDBVMFieldSource1 inherited

Detailed Description

Normalize the field (subtract the mean then divide by standard dev).

Definition at line 349 of file SDBVMat.h.


Member Typedef Documentation

typedef SDBVMFieldSource1 PLearn::SDBVMFieldNormalize::inherited [private]
 

Reimplemented from PLearn::SDBVMFieldSource1.

Definition at line 351 of file SDBVMat.h.


Constructor & Destructor Documentation

PLearn::SDBVMFieldNormalize::SDBVMFieldNormalize SDBVMSource  source,
real  missing_values_mapping = MISSING_VALUE
[inline]
 

Definition at line 354 of file SDBVMat.h.


Member Function Documentation

void PLearn::SDBVMFieldNormalize::convertField const SDBWithStats sdb,
const Row row,
const Vec output
const [virtual]
 

Given a database row, convert the appropriate parts to a (preallocated) output vector of the correct width (given by fieldWidth). Replace MISSING_VALUEs by missing_values_mapping.

Implements PLearn::SDBVMField.

Definition at line 312 of file SDBVMat.cc.

References PLearn::SDBVMSource::getFieldStat(), PLearn::SDBVMSource::getValue(), PLearn::FieldStat::mean(), PLearn::FieldStat::stddev(), PLearn::Vec, and x.

int PLearn::SDBVMFieldNormalize::fieldWidth  )  const [virtual]
 

Width that the field occupies in the VMat.

Implements PLearn::SDBVMField.

Definition at line 321 of file SDBVMat.cc.


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:22:51 2004 for PLearn by doxygen 1.3.7