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: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
