On 1/11/15 10:04 AM, Phil Steitz wrote: > On 1/11/15 9:26 AM, Gilles wrote: >> On Fri, 09 Jan 2015 10:55:53 -0700, Phil Steitz wrote: >>> There is a feature request implicit in MATH-1185 - to add direct >>> computation of (upper) tail probabilities, so users can avoid loss >>> of significance errors when computing them from cumulative >>> probabilities, which is the only thing they can do with current >>> implementations. In some cases, we can fairly easily provide direct >>> estimates; in others, not so easy. >>> >>> What might make sense would be: >>> >>> * Add an upperTail(x) method to the 4.0 distributions interface >>> (maybe with a better name) >>> * Add default implementation to AbstractXxDistribution (3.x and 4) >>> that returns naive results >>> * Add - and doc - better implementations for individual >>> distributions as and when we get them >> +1 >> [Although we could consider throwing an exception instead of >> returning the naive result. Or one method that would throw >> and one that would return possibly inaccurate results.] > Yeah, UnsupportedOperationException might make sense in place of the > naive implementation. Would have to be documented carefully if we > decide to do that.
I guess another idea would be not to add the method to the interfaces, but just to the distributions that have good implementations. Phil > > Phil >> >> Gilles >> >>> Phil >> >> --------------------------------------------------------------------- >> 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]
