Thank you Henry for the very elegant solution! Best Regards,
Es On Sun, Jul 11, 2021 at 11:33 PM Henry Rich <[email protected]> wrote: > You can enforce nondecreasing with >./\ y . > > Henry Rich > > On 7/11/2021 4:24 PM, esal wrote: > > 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 > > > -- > This email has been checked for viruses by AVG. > https://www.avg.com > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
