Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7ECA4F0F9 for ; Sat, 23 Mar 2013 17:51:16 +0000 (UTC) Received: (qmail 5697 invoked by uid 500); 23 Mar 2013 17:51:16 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 5548 invoked by uid 500); 23 Mar 2013 17:51:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 5529 invoked by uid 99); 23 Mar 2013 17:51:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Mar 2013 17:51:15 +0000 Date: Sat, 23 Mar 2013 17:51:15 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-917) More distance measurements are needed in o.a.c.m.stat.clustering. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13611780#comment-13611780 ] Phil Steitz commented on MATH-917: ---------------------------------- In general, I like this. It may be best to do this as a replacement in 4.0, though, instead of yet another new package, moved for convenience. My opinion is that this belongs where it is - in .stat. I agree with the rationale for the changes though, especially the second bullet. I have a couple of small comments: * I think I agree, but want to make sure there is no loss in the first bullet. Doing this effectively turns a Clusterable into a vector. I don't have immediate use cases where this will not be true; but the existing setup is a bit more general and more logical to me - the distance measure is a property of the space of objects that are being clustered. I get your point about it making it a bit easier to implement the interface; but I want to make sure it does not end up cutting out some applications. * I am curious why you chose to make CentroidBasedCluster and ClusterCenter inner classes of KMeansPlusPlusClusterer. * Don't forget the javadoc of the modified Cluster::Cluster() should omit reference to the centroid. > More distance measurements are needed in o.a.c.m.stat.clustering. > ----------------------------------------------------------------- > > Key: MATH-917 > URL: https://issues.apache.org/jira/browse/MATH-917 > Project: Commons Math > Issue Type: Improvement > Reporter: Reid Hochstedler > Fix For: 4.0 > > Attachments: clustering.zip > > > Currently only Euclidean distance is used for distance measurement, it would be easy to quickly add Manhattan and Chebyshev distance among others. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira