00001 /*============================================================================= 00002 * Product : OpenPL 00003 * File : plCndProbTable.h (before plConditionalHistogram.h) 00004 * Author : Christophe Coue 00005 * Creation : Wed Nov 7 13:06:08 CET 2001 00006 * 00007 *============================================================================= 00008 * (c) Copyright 2000, Centre National de la Recherche Scientifique, 00009 * all rights reserved 00010 *============================================================================= 00011 * 00012 *------------------------- Description --------------------------------------- 00013 * This distribution returns, when it is instantiated, a plProbTable which values 00014 * are those of the right variables 00015 * example: plCndProbTable p(H | B1 B2); 00016 * where H can take two values: 0 or 1 00017 * and B1 and B2 are plRealType 00018 * when it is instantiated, it constructs the probability table on P(H) with the values 00019 * P([H=0])=B0 and P([H=1])=B1 00020 * 00021 * 00022 *----------------------------------------------------------------------------- 00023 */ 00024 00025 00026 #ifndef _plCndProbTable_h_ 00027 #define _plCndProbTable_h_ 00028 00029 #include <plMath.h> 00030 #include <plVariablesConjunction.h> 00031 #include <plCndDKernel.h> 00032 #include <plExternalFunction.h> 00033 00034 00035 /***************************************************************************** 00036 * Classes Definitions 00037 *****************************************************************************/ 00038 00039 00042 class plCndProbTable : public plCndDKernel 00043 { 00044 protected: 00046 plCndProbTable() {}; 00047 00048 public: 00081 plCndProbTable(const plVariablesConjunction& left, const plVariablesConjunction& right); 00082 00083 00119 plCndProbTable(const plVariablesConjunction& left, 00120 const plVariablesConjunction& right, 00121 const plExternalFunction& fknown); 00122 00123 00125 virtual ~plCndProbTable() {}; 00126 00127 }; 00128 00129 00130 #endif // _plCndProbTable_h_