Hello everybody

I would like to plot 2 to 4 (empirical) cumulative distribution functions
in one plot. The maximum value of the variable varies between distributions.

For example, consider balanced dice with 4, 6 or 8 sides:

dice_cdf=:%~i.@>:


dice_cdf 4 6 8


0 0.25 0.5 0.75 1 0 0 0 0

0 0.166667 0.333333 0.5 0.666667 0.833333 1 0 0

0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1


So I would like to have the trailing zeroes converted to ones as a cdf is
an increasing function.

The need for this came from a real life need - comparing the age
distributions of table statics of two to four different SQL Server
databases.

I thought that maybe I could use the fit conjunction !. instead of a non-
Jish approach but I couldn't.

Any help is greatly appreciated.

Esa
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to