--- a/Collection.st Wed Feb 12 15:33:40 2014 +0100
+++ b/Collection.st Wed Feb 12 15:35:02 2014 +0100
@@ -778,16 +778,6 @@
"Created: 6.2.1996 / 15:27:49 / cg"
!
-median
- "Return the middle element, or as close as we can get."
-
- ^ self asSortedCollection median
-
- "
- #(10 35 20 45 30 5) median
- "
-!
-
nth:n
"return the nth element of the collection.
For unordered collections, this simply returns the nth
@@ -5008,6 +4998,16 @@
"Created: / 13-04-2011 / 16:53:44 / cg"
!
+median
+ "Return the middle element, or as close as we can get."
+
+ ^ self asSortedCollection median
+
+ "
+ #(10 35 20 45 30 5) median
+ "
+!
+
standardDeviation
"standard deviation value of all elements in the collection,
which is the complete set and not a sample."
@@ -5374,11 +5374,11 @@
!Collection class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.322 2014-02-12 14:33:29 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.323 2014-02-12 14:35:02 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.322 2014-02-12 14:33:29 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.323 2014-02-12 14:35:02 cg Exp $'
! !