Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6DB0926E for ; Thu, 9 Feb 2012 09:51:12 +0000 (UTC) Received: (qmail 42215 invoked by uid 500); 9 Feb 2012 09:51:08 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 41598 invoked by uid 500); 9 Feb 2012 09:50:46 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 41588 invoked by uid 99); 9 Feb 2012 09:50:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 09:50:40 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=Qplp=AT=m4x.org=sebastien.brisard@bounces.m4x.org designates 129.104.30.34 as permitted sender) Received: from [129.104.30.34] (HELO mx1.polytechnique.org) (129.104.30.34) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 09:50:30 +0000 Received: from mail-vx0-f171.google.com (mail-vx0-f171.google.com [209.85.220.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 1C37714078D0A for ; Thu, 9 Feb 2012 10:50:10 +0100 (CET) Received: by vcbfo11 with SMTP id fo11so3614165vcb.30 for ; Thu, 09 Feb 2012 01:50:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.74.163 with SMTP id u3mr409718vdv.91.1328781009158; Thu, 09 Feb 2012 01:50:09 -0800 (PST) Received: by 10.52.180.133 with HTTP; Thu, 9 Feb 2012 01:50:09 -0800 (PST) In-Reply-To: <4F339572.8050509@free.fr> References: <4F339572.8050509@free.fr> Date: Thu, 9 Feb 2012 10:50:09 +0100 Message-ID: Subject: Re: [math] Package transform revisited From: =?ISO-8859-1?Q?S=E9bastien_Brisard?= To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Thu Feb 9 10:50:10 2012 +0100 (CET)) X-Org-Mail: sebastien.brisard.1997@polytechnique.org X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: No, tests=bogofilter, spamicity=0.000005, queueID=5ADFA14078D0B Hi Luc, > > I agree with you, enums are much better. There are other places in > [math] where we use boolean or even ints for such things. They mainly > came for pre-java 5 era when enums where not available. > > Luc > And what do you think of replacing - transform(double[]) with transform(double[], FORWARD) - inverseTransform(double[]) with transform(double[], INVERSE) (also using enums) ? In fact, at the lowest level, all transforms are coded this way (a boolean is passed to specifiy whether or not the inverse is to be computed). So maybe the higher level methods should also do so. S=E9bastien --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org