Re: [Boost-bugs] [Boost C++ Libraries] #9126: Logistic distribution pdf() and cdf(complement()) fail to catch invalid scale and location parameters

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9126: Logistic distribution pdf() and cdf(complement()) fail to catch invalid scale and location parameters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-23 09:56:28


#9126: Logistic distribution pdf() and cdf(complement()) fail to catch invalid
scale and location parameters
---------------------------------------+----------------------
  Reporter: Paul McClellan <paulm@…> | Owner: pbristow
      Type: Bugs | Status: assigned
 Milestone: Boost 1.55.0 | Component: math
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------+----------------------

Comment (by pbristow):

 Ah ha, as I eventually suspected, you are ignoring the carefully
 constructed error reporting mechanism :-)

 I trust that the code changes will meet your wishes, but one could argue
 that the more correct result from 'bad' distribution constructor arguments
 is always NaN (not infinity). You could define your custom policy to
 achieve just that. Or you could use the default error handling policy and
 throw'n'catch from the distribution construction - the intended usage, as
 given in many examples.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9126#comment:7>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC