Max length of a LOC: poll results (Was: On 80 columns...)
Tomek Sowiński
just at ask.me
Mon Jan 31 11:45:17 PST 2011
Tomek Sowiński napisał:
> Alright, I'm wrapping up this toy study. Two things before the numbers come:
>
> - A few respondents gave 2 numbers, one "reasonable", the other "if I really have to". I took the latter (larger) number as I was after maximum length, something usable as a setting for a repository hook.
> - 2 respondents said "no limit". I excluded them from computations, albeit it's a valid answer. 1 respondent answered "1 mole" which I also excluded as a 22-order-of-magnitude outlier.
Steven came in late with his datapoint, so once again:
> lengths = c(80, 80, 110, 120, 80, 80, 100, 100, 120, 110, 90, 80)
>
> summary(lengths)
Min. 1st Qu. Median Mean 3rd Qu. Max.
80.00 80.00 95.00 95.83 110.00 120.00
>
> sd(lengths) # standard deviation
[1] 16.21354
>
> quantile(lengths, c(.1, .25, .5, .75, .9))
10% 25% 50% 75% 90%
80 80 95 110 119
>
> skewness(lengths) # take with a grain of salt, little data
[1] 0.3121957
>
> length(lengths) # count
[1] 12
--
Tomek
More information about the Digitalmars-d
mailing list