From: Robert Klemme Date: 2009-09-14T17:40:23+09:00 Subject: Re: Finding difference in a number range 2009/9/14 Pål Bergström : > This is my problem. I have a scale from 0 to 15 and five different > elements with their own position on that scale. How can I understand if > they are spread all over the scale, have different positions on the > scale, or if they are close and nearby each-other? > > These are close: 2,3,4,3,2 > > These are not so close: 2,4,3,12,15 > > These are spread: 0,5,8,12,15 Sounds like a use case for http://en.wikipedia.org/wiki/Standard_deviation Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/