[Top][All Lists]

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

Calculating CDFs from PDFs

From: Joe Koski
Subject: Calculating CDFs from PDFs
Date: Wed, 01 Sep 2004 13:57:54 -0600
User-agent: Microsoft-Entourage/

With the octave hist function, I'm calculating approximate probability
density functions for some experimental data, and it is working well.

To get the cumulative distribution function from the probability
distribution, I reverted to my Fortran roots and wrote

% calculate cdf from pdf
  for i = 1:num_bins

which also works well.

Question: is there a way of calculating cdf without resorting to the for
loop? The for loop approach seems very un-octave to me.

Obviously, this is not urgent, but perhaps educational.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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