Dear All,
I am trying to implement a KS test on 2 Histogram PDFs that I have and i
am trying to calculate the maximum distance between the two
distributions now but I seem to be failing with getting the actual sum
in a given bin.
I assumed (based on the documentation) that I should be able to retrieve
the sum by using ((my_type)->pdf->sum+x) where x is the bin that i want
but apparently that's not how it should be done.
Could anyone possible clarify how it should be addressed?
Thanks in advance,
Bas Jansen
PS: I added a tiny piece of my code as an example, right now it just is
supposed to print the value before i do the actual test.
float D;
for (i = 0; i < chrom->hits-1; i++) {
for (j = i+1; j < chrom->hits; j++) {
D = 0;
printf("%f\n",(((chrom+i)->pdf)->sum+2));
/* Do stuff */
}
}