Talk:Stem-and-leaf plot: Difference between revisions

m
lang tags replaced by syntaxhighlight
m (lang tags replaced by syntaxhighlight)
 
(One intermediate revision by one other user not shown)
Line 40:
 
:: I would prefer we leave out negatives. Stem plots look crap for negative numbers. --[[User:Paddy3118|Paddy3118]] 08:18, 18 December 2009 (UTC)
 
::: I rather agree about leaving out negatives, it does complicate the programming. &nbsp; It took a few extra REXX statements to handle the case of &nbsp; '''-0''' &nbsp; and &nbsp; '''0''' &nbsp; to be handled as separate indices. &nbsp; It would be nice to have a companion Rosetta Code task to handle negative numbers &nbsp; (and also zeroes). &nbsp; An '''extra credit''' at this late point would be a day late and a dollar short. &nbsp; '''But''', I disagree about the stem plots looking like crap for negative numbers. &nbsp; See the output for the 2<sup>nd</sup> REXX version. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 00:57, 4 June 2016 (UTC)
 
:: Should I appear smug at this point? ;) --[[User:Glennj|glennj]] 16:09, 16 December 2009 (UTC)
Line 55 ⟶ 57:
243 109 226 66 179 201 61 84 93 83 181 88</pre>
::: Generated using:
<langsyntaxhighlight lang="j"> require 'stats/distribs/normal'
randomize=: ] /: 0 ?@$~ #
showStemLeaf dat=: (84 20,:184 40) ([: randomize ,@:(<.@:rnorm"1 0)) 30 30
Line 81 ⟶ 83:
│25│ │
│26│7 │
└──┴─────────────┘</langsyntaxhighlight>
--[[User:Tikkanz|Tikkanz]] 01:22, 18 December 2009 (UTC)
 
3,028

edits