Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 7715 invoked from network); 7 Dec 2010 03:07:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 03:07:35 -0000 Received: (qmail 81236 invoked by uid 500); 7 Dec 2010 03:07:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 80919 invoked by uid 500); 7 Dec 2010 03:07:34 -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 80903 invoked by uid 99); 7 Dec 2010 03:07:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 03:07:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 03:07:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB7379h5012149 for ; Tue, 7 Dec 2010 03:07:09 GMT Message-ID: <32254843.14681291691229525.JavaMail.jira@thor> Date: Mon, 6 Dec 2010 22:07:09 -0500 (EST) From: "Patrick Meyer (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (MATH-448) Frequency get number of unique values In-Reply-To: <2510707.47511291216331335.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Meyer updated MATH-448: ------------------------------- Attachment: MATH-448.patch > Frequency get number of unique values > ------------------------------------- > > Key: MATH-448 > URL: https://issues.apache.org/jira/browse/MATH-448 > Project: Commons Math > Issue Type: New Feature > Reporter: Patrick Meyer > Priority: Minor > Attachments: MATH-448.patch > > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > It is often useful to know the number of unique elements in a frequency table. Could you add a simple method that returns the size of freqTable. It seems like it would be as simple as: > {code} > public int getUniqueCount(){ > return freqTable.size(); > } > {code} > Given that freqTable is private, there is no way to extend the class and add this method. Thanks! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.