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)
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