Skip to content

Commit 05ad0d9

Browse files
committed
* Fixes bug #1724299
This only covered a broken link in the comments. I will not distribute this as package. The change in the code will have to suffice for now. It will be included in the next release. git-svn-id: https://python-cluster.svn.sourceforge.net/svnroot/python-cluster/trunk@5 57eab859-f816-0410-af72-e61ffa1cc713
1 parent 62afbd4 commit 05ad0d9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cluster.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def flatten(L):
3232

3333
def median(numbers):
3434
"""Return the median of the list of numbers.
35-
36-
found at: http://mail.python.org/pipermail/python-list/2004-December/253517.html"""
35+
found at: http://mail.python.org/pipermail/python-list/2004-December/294990.html"""
36+
3737
# Sort the list and take the middle element.
3838
n = len(numbers)
3939
copy = numbers[:] # So that "numbers" keeps its original order
@@ -45,8 +45,7 @@ def median(numbers):
4545

4646
def mean(numbers):
4747
"""Returns the arithmetic mean of a numeric list.
48-
49-
found at: http://mail.python.org/pipermail/python-list/2004-December/253517.html"""
48+
found at: http://mail.python.org/pipermail/python-list/2004-December/294990.html"""
5049
return float(sum(numbers)) / float(len(numbers))
5150

5251
def minkowski_distance(x, y, p=2):

0 commit comments

Comments
 (0)