commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: [math] replace AbstractContinuousDistribution.getSolverAbsoluteAccuracy() with AbstractContinuousDistribution.getSolver()
Date Sat, 05 Nov 2011 14:06:19 GMT
Le 05/11/2011 09:21, Sébastien Brisard a écrit :
> Hi,
> while working on MATH-699 (which was triggered by MATH-692), I found
> some inconsistencies in the use of
> UnivariateRealSolver.getAbsoluteAccuracy() and
> UnivariateRealSolver.getFunctionValueAccuracy() (see the JIRA ticket
> for more details).
> In short, the current implementation of AbstractContinuousDistribution
> allows customization of the default solver (for inverting the CDF) via
> AbstractContinuousDistribution.getSolverAbsoluteAccuracy(). To be
> completely consistent, we would also need to provide a new method
> AbstractContinuousDistribution.getSolverFunctionValueAccuracy().
> Instead, I suggest we open the possibility to provide a custom solver
> to AbstractContinuousDistribution (with all three tolerances set by
> the user), as well as a getSolver() method.
> What do you think of this change?

So the user would first configure the solver and then provide it fully
configured to the abstract distribution ?

If this is what you propose, then I agree.

Luc

> 
> 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


Mime
View raw message