mirror of https://github.com/jlizier/jidt
Bug fix to debug prints in Kraskov Conditional MI calculators
This commit is contained in:
parent
6761de7e02
commit
9d36e5d9a6
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue