[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Question regarding GSL histogram PDF

From: Bas Jansen
Subject: [Help-gsl] Question regarding GSL histogram PDF
Date: Fri, 3 Aug 2012 14:26:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0

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;
           /* Do stuff */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]