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

plProbTable Class Reference

A plProbTable represents a table of probability values on integer and/or discretized real variables. More...

#include <plProbTable.h>

Inheritance diagram for plProbTable:

Inheritance graph
[legend]
Collaboration diagram for plProbTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 plProbTable (const plVariablesConjunction &V, bool normalized=true)
 Constructor1: Constructs an empty probability table on the variable (s) {V}.
You should set normalized to true iff you want plProbTable represents probability distributions i.e.
 plProbTable (const plVariablesConjunction &V, const plProbValue *values, bool normalized=true)
 Constructor2: Constructs a probability table on the variable (s) {V} and fills it using the values contained in the C array {values}.
 plProbTable (const plVariablesConjunction &V, const vector< plProbValue > &values, bool normalized=true)
 Constructor3: Constructs a probability table on the variable (s) {V} and fills it using the values contained in the STL vector {values}.

Detailed Description

A plProbTable represents a table of probability values on integer and/or discretized real variables.

This includes both the one-dimensional case and the multi-dimensional case.

Definition at line 41 of file plProbTable.h.


Constructor & Destructor Documentation

plProbTable::plProbTable const plVariablesConjunction V,
bool  normalized = true
 

Constructor1: Constructs an empty probability table on the variable (s) {V}.
You should set normalized to true iff you want plProbTable represents probability distributions i.e.

normalized table of numbers.
Warning : normalized set to false says that you want keep the entry, so plProbTable does not represent ever a probability distribution.
You should set normalized to true iff you want ProBT to normalise the distribution for you.

plProbTable::plProbTable const plVariablesConjunction V,
const plProbValue *  values,
bool  normalized = true
 

Constructor2: Constructs a probability table on the variable (s) {V} and fills it using the values contained in the C array {values}.

You should set normalized to true iff you want plProbTable represents probability distributions i.e. normalized table of numbers.
Warning : normalized set to false says that you want keep the entry, so plProbTable does not represent ever a probability distribution.
You should set normalized to true iff you want ProBT to normalise the distribution for you.

In multi-dimentional cases ({H = H1^H2}), where {H1} and {H2} can take n1 and n2 values respectively, it constructs the probability table on P(H) using the values {values} as follows:

  • P([H1=1, H2=1]) = values[0]
  • P([H1=1, H2=2]) = values[1]
    .
    .
    .
  • P([H1=1, H2=n2]) = values[n2-1]

  • P([H1=2, H2=1]) = values[n2])
  • P([H1=2, H2=2]) = values[n2+1]
    .
    .
    .
  • P([H1=2, H2=n2]) = values[2*(n2-1)]
    .
    .
    .
  • P([H1=n, H2=m]) = values[(n1-1)*(n2-1)]

plProbTable::plProbTable const plVariablesConjunction V,
const vector< plProbValue > &  values,
bool  normalized = true
 

Constructor3: Constructs a probability table on the variable (s) {V} and fills it using the values contained in the STL vector {values}.

Same as Constructor2 for multi dimensional cases.


The documentation for this class was generated from the following file:
Generated on Fri Apr 1 10:59:34 2005 for ProBT by  doxygen 1.4.1