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

plProduct Class Reference

Creates a conditional or non conditional distribution as a product of a conditional and non conditional distributions. More...

#include <plProduct.h>

Inheritance diagram for plProduct:

Inheritance graph
[legend]
Collaboration diagram for plProduct:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 plProduct ()
 Default constructor.
 plProduct (const plComputableObjectList &func_lis)
 Constructor using a list of computable objects.
 plProduct (const plProduct &pr)
 Copy constructor.
plProductoperator= (const plProduct &pr)
 Assignation operator.
 ~plProduct ()
 Destructor.
void replace (const plVariablesConjunction &left_vars, const plVariablesConjunction &right_vars, plCndKernel &new_cnd_kernel)
 Replace the conditional distribution P(left_vars | right_vars) by an other conditional ditribution "new_cnd_kernel".
void replace (const plVariablesConjunction &left_vars, plKernel &new_kernel)
 Replace the distribution P(left_vars ) by an other ditribution "new_kernel".
ostream & write_head (ostream &out) const
 Writes the the kernel head at the output stream {out}.
ostream & write_body (ostream &out) const
 Writes the kernel body at the output stream {out}.
kplComputableObject * get_root_kernel () const
 Returns the pointer to itself if the kerel is not a {built in kernel (function)} other wise it returns a pointer to the kernel at kernel level.

Protected Member Functions

plProbValue kernel_compute (const plDataValues &params) const
 Computes the value of the function, according to a list of parameters at kernel level.
void kernel_rename (const map< kplVariable *, kplVariable * > &rename_map)
 Renames the variables of a function at kernel level.

Friends

class plCndKernel
class plKernel

Detailed Description

Creates a conditional or non conditional distribution as a product of a conditional and non conditional distributions.

Definition at line 28 of file plProduct.h.


Member Function Documentation

void plProduct::replace const plVariablesConjunction left_vars,
plKernel new_kernel
[virtual]
 

Replace the distribution P(left_vars ) by an other ditribution "new_kernel".

new_kernel must have the same left variables.

Implements plComputableObject.

void plProduct::replace const plVariablesConjunction left_vars,
const plVariablesConjunction right_vars,
plCndKernel new_cnd_kernel
[virtual]
 

Replace the conditional distribution P(left_vars | right_vars) by an other conditional ditribution "new_cnd_kernel".

new_cnd_kernel must have the same left and right variables.

Implements plComputableObject.


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