Source

ITE / code / H_I_D_A_C / meta_estimators / DJensenShannon_HShannon_estimation.m

Diff from to

File code/H_I_D_A_C/meta_estimators/DJensenShannon_HShannon_estimation.m

 
 %co.mult:OK.
 
+%verification:
+    if size(Y1,1)~=size(Y2,1)
+        error('The dimension of the samples in Y1 and Y2 must be equal.');
+    end
+
 w = co.w;
 mixtureY = mixture_distribution(Y1,Y2,w);
 D_JS =  H_estimation(mixtureY,co.member_co) - (w(1)*H_estimation(Y1,co.member_co) + w(2)*H_estimation(Y2,co.member_co));