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

PLearn::SmoothedProbSparseMatrix Class Reference

#include <SmoothedProbSparseMatrix.h>

Inheritance diagram for PLearn::SmoothedProbSparseMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool checkCondProbIntegrity ()
 SmoothedProbSparseMatrix (int n_rows=0, int n_cols=0, string name="pXY", int mode=ROW_WISE, bool double_access=false)
void normalizeCondLaplace (ProbSparseMatrix &nXY, bool clear_nXY=false)
void normalizeCondBackoff (ProbSparseMatrix &nXY, real disc, Vec &bDist, bool clear_nXY, bool shadow)
string getClassName () const
real get (int i, int j)
void write (PStream &out) const
void read (PStream &in)

Protected Attributes

int smoothingMethod
Vec normalizationSum
Vec backoffDist
Vec backoffNormalization
Vec discountedMass

Constructor & Destructor Documentation

PLearn::SmoothedProbSparseMatrix::SmoothedProbSparseMatrix int  n_rows = 0,
int  n_cols = 0,
string  name = "pXY",
int  mode = ROW_WISE,
bool  double_access = false
 

Definition at line 41 of file SmoothedProbSparseMatrix.cc.

References mode, and smoothingMethod.


Member Function Documentation

bool PLearn::SmoothedProbSparseMatrix::checkCondProbIntegrity  ) 
 

Reimplemented from PLearn::ProbSparseMatrix.

Definition at line 276 of file SmoothedProbSparseMatrix.cc.

References backoffDist, backoffNormalization, discountedMass, normalizationSum, ROW_WISE, PLearn::TVec< T >::size(), smoothingMethod, and PLearn::sum().

Referenced by PLearn::GraphicalBiText::check_consitency().

real PLearn::SmoothedProbSparseMatrix::get int  i,
int  j
[virtual]
 

Reimplemented from PLearn::DoubleAccessSparseMatrix< real >.

Definition at line 226 of file SmoothedProbSparseMatrix.cc.

References backoffDist, backoffNormalization, discountedMass, normalizationSum, PLERROR, ROW_WISE, and smoothingMethod.

Referenced by PLearn::GraphicalBiText::test_WSD().

string PLearn::SmoothedProbSparseMatrix::getClassName  )  const [inline, virtual]
 

Reimplemented from PLearn::ProbSparseMatrix.

Definition at line 69 of file SmoothedProbSparseMatrix.h.

Referenced by read(), and write().

void PLearn::SmoothedProbSparseMatrix::normalizeCondBackoff ProbSparseMatrix nXY,
real  disc,
Vec bDist,
bool  clear_nXY,
bool  shadow
 

Definition at line 106 of file SmoothedProbSparseMatrix.cc.

References backoffDist, backoffNormalization, PLearn::TVec< T >::clear(), PLearn::DoubleAccessSparseMatrix< real >::clear(), COLUMN_WISE, discountedMass, PLearn::DoubleAccessSparseMatrix< real >::getCol(), PLearn::DoubleAccessSparseMatrix< real >::getHeight(), PLearn::DoubleAccessSparseMatrix< real >::getMode(), PLearn::DoubleAccessSparseMatrix< real >::getName(), PLearn::DoubleAccessSparseMatrix< real >::getRow(), PLearn::DoubleAccessSparseMatrix< real >::getWidth(), PLearn::DoubleAccessSparseMatrix< real >::isDoubleAccessible(), normalizationSum, PLERROR, PLearn::TVec< T >::resize(), ROW_WISE, PLearn::TVec< T >::size(), smoothingMethod, PLearn::DoubleAccessSparseMatrix< real >::sumCol(), and PLearn::DoubleAccessSparseMatrix< real >::sumRow().

Referenced by PLearn::GraphicalBiText::init_WSD(), and PLearn::GraphicalBiText::update_WSD_model().

void PLearn::SmoothedProbSparseMatrix::normalizeCondLaplace ProbSparseMatrix nXY,
bool  clear_nXY = false
 

Definition at line 52 of file SmoothedProbSparseMatrix.cc.

References PLearn::DoubleAccessSparseMatrix< real >::clear(), COLUMN_WISE, PLearn::DoubleAccessSparseMatrix< real >::getCol(), PLearn::DoubleAccessSparseMatrix< real >::getHeight(), PLearn::DoubleAccessSparseMatrix< real >::getMode(), PLearn::DoubleAccessSparseMatrix< real >::getRow(), PLearn::DoubleAccessSparseMatrix< real >::getWidth(), PLearn::DoubleAccessSparseMatrix< real >::isDoubleAccessible(), normalizationSum, PLERROR, PLearn::TVec< T >::resize(), ROW_WISE, smoothingMethod, PLearn::DoubleAccessSparseMatrix< real >::sumCol(), and PLearn::DoubleAccessSparseMatrix< real >::sumRow().

void PLearn::SmoothedProbSparseMatrix::read PStream in  )  [virtual]
 

Reimplemented from PLearn::DoubleAccessSparseMatrix< real >.

Definition at line 363 of file SmoothedProbSparseMatrix.cc.

References backoffDist, backoffNormalization, discountedMass, PLearn::PStream::get(), getClassName(), PLearn::PStream::inmode, normalizationSum, PLERROR, read(), PLearn::PStream::skipBlanksAndCommentsAndSeparators(), and smoothingMethod.

void PLearn::SmoothedProbSparseMatrix::write PStream out  )  const [virtual]
 

Reimplemented from PLearn::DoubleAccessSparseMatrix< real >.

Definition at line 334 of file SmoothedProbSparseMatrix.cc.

References backoffDist, backoffNormalization, discountedMass, getClassName(), normalizationSum, PLearn::PStream::outmode, PLERROR, smoothingMethod, and PLearn::PStream::write().


Member Data Documentation

Vec PLearn::SmoothedProbSparseMatrix::backoffDist [protected]
 

Definition at line 59 of file SmoothedProbSparseMatrix.h.

Referenced by checkCondProbIntegrity(), get(), normalizeCondBackoff(), read(), and write().

Vec PLearn::SmoothedProbSparseMatrix::backoffNormalization [protected]
 

Definition at line 60 of file SmoothedProbSparseMatrix.h.

Referenced by checkCondProbIntegrity(), get(), normalizeCondBackoff(), read(), and write().

Vec PLearn::SmoothedProbSparseMatrix::discountedMass [protected]
 

Definition at line 62 of file SmoothedProbSparseMatrix.h.

Referenced by checkCondProbIntegrity(), get(), normalizeCondBackoff(), read(), and write().

Vec PLearn::SmoothedProbSparseMatrix::normalizationSum [protected]
 

Definition at line 57 of file SmoothedProbSparseMatrix.h.

Referenced by checkCondProbIntegrity(), get(), normalizeCondBackoff(), normalizeCondLaplace(), read(), and write().

int PLearn::SmoothedProbSparseMatrix::smoothingMethod [protected]
 

Definition at line 54 of file SmoothedProbSparseMatrix.h.

Referenced by checkCondProbIntegrity(), get(), normalizeCondBackoff(), normalizeCondLaplace(), read(), SmoothedProbSparseMatrix(), and write().


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