Hello all,

I have a question about math.

So, there is the Probability Density Function (PDF) (or
Gaussian function or Bell Curve) for some programming examples. The formula is: [a * e^( ( -( x - b )^2 ) / ( 2 * c^2 ) )], but you can use the link to see it written better.

I have used this function in a Processing programming example, where there is a plane in the 3d space, and various functions are applied to it, additively, producing various morphs. The gaussian function produces Hills...

There are, though, some other examples I have in mind, for which I need to use the
Cumulative Distribution Function (CDF). CDF is related to PDF, and more precisely, CDF is the integral of PDF. So if i have an entity that grows over time and PDF represents its growth over time, then CDF will represent its size over time.

Suppose, for example, that the growth of a tree (or a branch) starts slowly, then maximizes, and then slows down again. This is a phenomenon that can be described (or modelled over time) by the Gaussian Function. The length of the branch, though, can be calculated over time by the Integral of this function, which is the Cumulative Distribution Function.

Well, I am having some trouble in finding a way to programmatically describe the Cumulative Distribution Function, because I cannot find a formula for it that can be expressed within the boundaries of Processing. (It can be done very simply in Matlab)

Any help would be greatly appreciated...

1