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

PLearn::ProbSparseMatrix Class Reference

#include <ProbSparseMatrix.h>

Inheritance diagram for PLearn::ProbSparseMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProbSparseMatrix (int n_rows=0, int n_cols=0, string name="pXY", int mode=ROW_WISE, bool double_access=false)
void incr (int i, int j, real inc=1.0, bool warning=true)
void set (int i, int j, real value, bool warning=true)
bool checkCondProbIntegrity ()
bool checkJointProbIntegrity ()
void normalizeCond (ProbSparseMatrix &nXY, bool clear_nXY=false)
void normalizeJoint (ProbSparseMatrix &nXY, bool clear_nXY=false)
void normalizeCond ()
void normalizeJoint ()
string getClassName () const

Constructor & Destructor Documentation

PLearn::ProbSparseMatrix::ProbSparseMatrix 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 ProbSparseMatrix.cc.

References mode.


Member Function Documentation

bool PLearn::ProbSparseMatrix::checkCondProbIntegrity  ) 
 

Reimplemented in PLearn::SmoothedProbSparseMatrix, and PLearn::ComplementedProbSparseMatrix.

Definition at line 59 of file ProbSparseMatrix.cc.

References ROW_WISE, and PLearn::sum().

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

bool PLearn::ProbSparseMatrix::checkJointProbIntegrity  ) 
 

Definition at line 89 of file ProbSparseMatrix.cc.

References PLearn::DoubleAccessSparseMatrix< real >::sumOfElements().

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

Reimplemented from PLearn::DoubleAccessSparseMatrix< real >.

Reimplemented in PLearn::SmoothedProbSparseMatrix.

Definition at line 68 of file ProbSparseMatrix.h.

void PLearn::ProbSparseMatrix::incr int  i,
int  j,
real  inc = 1.0,
bool  warning = true
 

Definition at line 45 of file ProbSparseMatrix.cc.

References PLWARNING.

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

void PLearn::ProbSparseMatrix::normalizeCond  ) 
 

Definition at line 140 of file ProbSparseMatrix.cc.

References ROW_WISE.

void PLearn::ProbSparseMatrix::normalizeCond ProbSparseMatrix nXY,
bool  clear_nXY = false
 

Definition at line 94 of file ProbSparseMatrix.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(), PLERROR, ROW_WISE, PLearn::DoubleAccessSparseMatrix< real >::sumCol(), and PLearn::DoubleAccessSparseMatrix< real >::sumRow().

Referenced by PLearn::GraphicalBiText::compute_likelihood(), and PLearn::GraphicalBiText::init().

void PLearn::ProbSparseMatrix::normalizeJoint  ) 
 

Definition at line 214 of file ProbSparseMatrix.cc.

References ROW_WISE, and PLearn::DoubleAccessSparseMatrix< real >::sumOfElements().

void PLearn::ProbSparseMatrix::normalizeJoint ProbSparseMatrix nXY,
bool  clear_nXY = false
 

Definition at line 175 of file ProbSparseMatrix.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(), ROW_WISE, and PLearn::DoubleAccessSparseMatrix< real >::sumOfElements().

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

void PLearn::ProbSparseMatrix::set int  i,
int  j,
real  value,
bool  warning = true
 

Definition at line 52 of file ProbSparseMatrix.cc.

References PLWARNING.

Referenced by PLearn::GraphicalBiText::compute_likelihood(), PLearn::GraphicalBiText::init(), and PLearn::GraphicalBiText::update_WSD_model().


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