Bug fix to debug prints in Kraskov Conditional MI calculators

This commit is contained in:
joseph.lizier 2013-01-15 01:29:57 +00:00
parent 6761de7e02
commit 9d36e5d9a6
1 changed files with 2 additions and 0 deletions

View File

@ -335,6 +335,7 @@ public class ConditionalMutualInfoCalculatorMultiVariateKraskov2
avNxz /= (double)N; avNxz /= (double)N;
avNyz /= (double)N; avNyz /= (double)N;
avNz /= (double)N; avNz /= (double)N;
averageInverseCountInJointXZ /= (double) N;
System.out.printf("<n_xz>=%.3f, <n_yz>=%.3f, <n_z>=%.3f\n", System.out.printf("<n_xz>=%.3f, <n_yz>=%.3f, <n_z>=%.3f\n",
avNxz, avNyz, avNz); avNxz, avNyz, avNz);
System.out.printf("Av = digamma(k)=%.3f + <digammas>=%.3f - 1/k=%.3f + <1/n_yz>=%.3f = %.3f (<1/n_xz>=%.3f)\n", System.out.printf("Av = digamma(k)=%.3f + <digammas>=%.3f - 1/k=%.3f + <1/n_yz>=%.3f = %.3f (<1/n_xz>=%.3f)\n",
@ -459,6 +460,7 @@ public class ConditionalMutualInfoCalculatorMultiVariateKraskov2
avNxz /= (double)N; avNxz /= (double)N;
avNyz /= (double)N; avNyz /= (double)N;
avNz /= (double)N; avNz /= (double)N;
averageInverseCountInJointXZ /= (double) N;
System.out.printf("<n_xz>=%.3f, <n_yz>=%.3f, <n_z>=%.3f\n", System.out.printf("<n_xz>=%.3f, <n_yz>=%.3f, <n_z>=%.3f\n",
avNxz, avNyz, avNz); avNxz, avNyz, avNz);
System.out.printf("Av = digamma(k)=%.3f + <digammas>=%.3f - 1/k=%.3f + <1/n_yz>=%.3f = %.3f (<1/n_xz>=%.3f)\n", System.out.printf("Av = digamma(k)=%.3f + <digammas>=%.3f - 1/k=%.3f + <1/n_yz>=%.3f = %.3f (<1/n_xz>=%.3f)\n",