Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 49162 invoked from network); 28 Aug 2010 23:50:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Aug 2010 23:50:05 -0000 Received: (qmail 71708 invoked by uid 500); 28 Aug 2010 23:50:04 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 71592 invoked by uid 500); 28 Aug 2010 23:50:04 -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 71584 invoked by uid 99); 28 Aug 2010 23:50:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Aug 2010 23:50:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Aug 2010 23:49:57 +0000 Received: by qwd6 with SMTP id 6so2467457qwd.30 for ; Sat, 28 Aug 2010 16:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=5GXm9B0fQaOi4YeSgG/cRaTELTa0Ro6Zr7OjLyaKRF8=; b=H6PFp+LCRADZDlUPwB45I3bkxpTbgdq2WSJ4Fi2le1OWW3URBG2FtopYDt/B3aun3r 19tylEU1d2Vnu58DJRaKqfGnxwc4C1jnQwBxehnfOlV1933NijqccuQPg7nvSX0/V/N8 PdIj0L1exL+2VlHhKcA63rnak9q19zrX3aHms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=C2gIuckzo6SAcghf7+vX/4pc6ozriihm3gIyEyH/Dnove5eN6ZnWWtPnMNLfYuEutU tWTfxuvWgI6024Nf54TWlDindbALgNcLqpeQ+PU3ZtNPhQ6i6et2pSu7AOkNyAE28m+P 4fpQxNCYeiyJfckvoyBdingwwA0MA7L0vHi2Q= Received: by 10.224.45.139 with SMTP id e11mr1729441qaf.79.1283039376220; Sat, 28 Aug 2010 16:49:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.54.138 with HTTP; Sat, 28 Aug 2010 16:49:16 -0700 (PDT) In-Reply-To: <4C79928F.4060507@free.fr> References: <4C78546C.9020805@free.fr> <4C798CD3.7040407@gmail.com> <4C79928F.4060507@free.fr> From: Ted Dunning Date: Sat, 28 Aug 2010 17:49:16 -0600 Message-ID: Subject: Re: [math] unit tests for FastMath To: Commons Developers List Content-Type: multipart/alternative; boundary=00151750d86840a325048eeae2ef --00151750d86840a325048eeae2ef Content-Type: text/plain; charset=UTF-8 Some of these tests might benefit from choosing values from a highly skewed distribution. Gamma(0.01, 0.01), for instance will exercise small and large values much better than an exponential distribution. On Sat, Aug 28, 2010 at 4:49 PM, Luc Maisonobe wrote: > We could start by a random set of values just like the current tests do. > The current test structure is basically one big accuracy test for each > function, consisting in 10000 calls to random values obtained thanks to > Math.random and normalized to the appropriate domain of the function > (-inf; +inf) or (-1; +1) or (0; +inf) ... > --00151750d86840a325048eeae2ef--