nice, ... simple generalization (for definition of generalized that only works 
only for 2 digit numbers :P)

>@:([: ({."1 (~.@[ (, '|'&,)&.> <@(;:^:_1)/.) {:"1) [: ":"0 /:~) 54 59 35 41 46 
>25 47 60 54 46 49 46 41 34 22


----- Original Message -----
From: Henry Rich <[email protected]>
To: [email protected]
Cc: 
Sent: Saturday, May 3, 2014 7:23:55 AM
Subject: Re: [Jprogramming] Stemplot

    > ({."1 (~.@[ (, '|'&,)&.> <@(;:^:_1)/.) {:"1) ":"0 /:~ ruth

would need work to generalize.

Henry Rich

On 5/1/2014 7:35 PM, km wrote:
> Noun  ruth  below shows the numbers of home runs of Babe Ruth in each of his 
> 15 years with the New York Yankees, 1920 to 1934.  Noun  stemplot  is a 
> "stemplot" (defined below) of this data.  I have a clumsy way of producing 
> noun stemplot.  How would you do it?
>
>      ruth
>   54 59 35 41 46 25 47 60 54 46 49 46 41 34 22
>      stemplot
>   2|2 5
>   3|4 5
>   4|1 1 6 6 6 7 9
>   5|4 4 9
>   6|0
>
>>From Moore and McCabe, Introduction to the Practice of Statistics, Fourth 
>>Edition, page 20 --
>
> To make a "stemplot":
>
> 1. Separate each observation into a "stem" consisting of all but the final 
> (rightmost) digit and a "leaf", the final digit.  Stems may have as many 
> digits as needed, but each leaf contains only a single digit.
>
> 2. Write the stems in a vertical column with the smallest at the top, and 
> draw a vertical line at the right of this column.
>
> 3. Write each leaf in the row to the right of its stem, in increasing order 
> out from the stem.
>
> --Kip Murray
>
> Sent from my iPad
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

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

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

Reply via email to