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 E9D9D967C for ; Sun, 6 Nov 2011 07:24:49 +0000 (UTC) Received: (qmail 14171 invoked by uid 500); 6 Nov 2011 07:24:49 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 13931 invoked by uid 500); 6 Nov 2011 07:24:37 -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 13923 invoked by uid 99); 6 Nov 2011 07:24:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2011 07:24:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of phil.steitz@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-iy0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2011 07:24:27 +0000 Received: by iaen33 with SMTP id n33so5531246iae.30 for ; Sun, 06 Nov 2011 00:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=TRQvKV6OXiXlQdj6igxw0aovCtIHPJOzs/gV2DZCr+U=; b=R3bkVNgeMPEbfumCeJ2bilCWA/rk+Gc1AhwUNM+e0FoUSReyzq8Y+t18k7JFcUZ5bE PNBqqmhnCwLN0eTANi2Yu59qHh+WrjbNi2xtVyi/vnT2AdmmUv0ao6iQqTQoQMz3ss8Q KKgH7pQD/Z2d1bpyYnnHRdsKZyJBDr+vlbxyc= Received: by 10.231.24.160 with SMTP id v32mr4516509ibb.45.1320564246771; Sun, 06 Nov 2011 00:24:06 -0700 (PDT) Received: from [192.168.0.2] (71-223-79-109.phnx.qwest.net. [71.223.79.109]) by mx.google.com with ESMTPS id p6sm13046202pbf.3.2011.11.06.00.24.04 (version=SSLv3 cipher=OTHER); Sun, 06 Nov 2011 00:24:05 -0700 (PDT) Message-ID: <4EB63613.1030401@gmail.com> Date: Sun, 06 Nov 2011 00:24:03 -0700 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [math] replace AbstractContinuousDistribution.getSolverAbsoluteAccuracy() with AbstractContinuousDistribution.getSolver() References: <4EB542DB.3060505@free.fr> <4EB56739.1010808@gmail.com> <4EB62BBC.8020304@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit On 11/6/11 12:18 AM, S�bastien Brisard wrote: >> +1, but your observation above then leads to the question where are >> you going to get this value from? There may not be a solver to read >> it from. I guess the default impl in the base class could just >> return BaseAbstractUnivariateRealSolver.DEFAULT_FUNCTION_VALUE_ACCURACY. >> >> Phil >> > Ah, that's one option I didn't think of. I intended to follow the same > scheme as for getSolverAbsoluteAccuracy(), which returns > solverAbsoluteAccuracy (private field), possibly initialized with > DEFAULT_SOLVER_ABSOLUTE_ACCURACY (see AbstractContinuousDistribution). > Actually, using the BaseAbstractUnivariateRealSolver default value is > probably better. However, these default values are private... So maybe > we will have to select reasonable default values here. Ugh. I remember complaining about that (the fact that the defaults were made private) for precisely this kind of reason. Have to clone the value, I guess and keep it in synch with whatever Brent uses. Phil > S�bastien > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org