Home > Mateda2.0 > otherfiles > LaplaceEstimator.m

LaplaceEstimator

PURPOSE ^

LaplaceEstimator(totcliq,NPoints,Table)

SYNOPSIS ^

function[Table] = LaplaceEstimator(totcliq,NPoints,Table)

DESCRIPTION ^

 LaplaceEstimator(totcliq,NPoints,Table)
 LaplaceEstimator modifies the probability tables using the Laplace estimator  
 INPUTS:
 totcliq: Number of cliques
 NPoints: Number of elements in the original (or desired) data set
 Table: Cell array storing the probability tables for each of the cliques.
 
 Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function[Table] = LaplaceEstimator(totcliq,NPoints,Table)
0002 % LaplaceEstimator(totcliq,NPoints,Table)
0003 % LaplaceEstimator modifies the probability tables using the Laplace estimator
0004 % INPUTS:
0005 % totcliq: Number of cliques
0006 % NPoints: Number of elements in the original (or desired) data set
0007 % Table: Cell array storing the probability tables for each of the cliques.
0008 %
0009 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)
0010 for i=1:totcliq,
0011       cardcliq = size(Table{i},1);      
0012       Table{i} =  (Table{i} * NPoints + 1) / (NPoints+ cardcliq);
0013     end
0014   
0015

Generated on Fri 04-Dec-2009 13:38:29 by m2html © 2003