Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10110: boost::random::negative_binomial_distribution unnecessary restriction to IntType for parameter k
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-10 22:52:46
#10110: boost::random::negative_binomial_distribution unnecessary restriction to
IntType for parameter k
-------------------------------------+-------------------------------------
Reporter: Maximilian Kleinert | Owner: no-maintainer
<kleinert.max@â¦> | Status: new
Type: Bugs | Component: random
Milestone: To Be Determined | Severity: Problem
Version: Boost 1.55.0 | Keywords: random, negative
Resolution: | binomial distribution
-------------------------------------+-------------------------------------
Comment (by steven_watanabe):
Replying to [comment:2 Maximilian Kleinert <kleinert.max@â¦>]:
> The standard only describes the negative binomial distribution for
trials, e.g. integer parameters. So the behavior for a non integer value
is unspecified by the standard.
Not correct. The standard specifies that it takes an integer parameter.
It also states that a floating point number can be converted to
an integer. Therefore the behavior when passing a floating point
number is specified even if it isn't useful.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10110#comment:3> 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:18 UTC