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 D41FF97F7 for ; Sun, 10 Mar 2013 21:27:12 +0000 (UTC) Received: (qmail 18309 invoked by uid 500); 10 Mar 2013 21:27:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 18211 invoked by uid 500); 10 Mar 2013 21:27:12 -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 18195 invoked by uid 99); 10 Mar 2013 21:27:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Mar 2013 21:27:12 +0000 Date: Sun, 10 Mar 2013 21:27:12 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MATH-944) Consider making a generic version of class Frequency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thomas Neidhart created MATH-944: ------------------------------------ Summary: Consider making a generic version of class Frequency Key: MATH-944 URL: https://issues.apache.org/jira/browse/MATH-944 Project: Commons Math Issue Type: Improvement Affects Versions: 3.1 Reporter: Thomas Neidhart Fix For: 4.0 Attachments: Frequency.java The current version of the Frequency class is quite complex, as it has to handle different input values and does a lot of casting. The class is also not very safe in the sense that adding different data types will lead to runtime exceptions. The class could be simplified by introducing a generic version. The only downside so far is that the current version treats ints and longs together, which would not be possible with a generic version. -- 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