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

PLearn::SDBVMFieldPosAffine Class Reference

Take the positive part of the field, followed by affine transformation: y = a*max(x,0)+b. More...

#include <SDBVMat.h>

Inheritance diagram for PLearn::SDBVMFieldPosAffine:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SDBVMFieldPosAffine (SDBVMSource source, real a, real b=0.0, 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.


Protected Attributes

real a_
real b_

Private Types

typedef SDBVMFieldSource1 inherited

Detailed Description

Take the positive part of the field, followed by affine transformation: y = a*max(x,0)+b.

Definition at line 404 of file SDBVMat.h.


Member Typedef Documentation

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

Reimplemented from PLearn::SDBVMFieldSource1.

Definition at line 406 of file SDBVMat.h.


Constructor & Destructor Documentation

PLearn::SDBVMFieldPosAffine::SDBVMFieldPosAffine SDBVMSource  source,
real  a,
real  b = 0.0,
real  missing_values_mapping = MISSING_VALUE
[inline]
 

Definition at line 409 of file SDBVMat.h.


Member Function Documentation

void PLearn::SDBVMFieldPosAffine::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 370 of file SDBVMat.cc.

References a_, b_, PLearn::SDBVMSource::getValue(), and PLearn::Vec.

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

Width that the field occupies in the VMat.

Implements PLearn::SDBVMField.

Definition at line 377 of file SDBVMat.cc.


Member Data Documentation

real PLearn::SDBVMFieldPosAffine::a_ [protected]
 

Definition at line 419 of file SDBVMat.h.

Referenced by convertField().

real PLearn::SDBVMFieldPosAffine::b_ [protected]
 

Definition at line 419 of file SDBVMat.h.

Referenced by convertField().


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