Re: [Boost-bugs] [Boost C++ Libraries] #10110: boost::random::negative_binomial_distribution unnecessary restriction to IntType for parameter k

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-11 08:07:42


#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 Maximilian Kleinert <kleinert.max@…>):

 Replying to [comment:3 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.

 Ok. So the only possibility would be to add an extra distribution, e.g.
 Polya distribution, which is essentially the same except that it allows a
 real positive parameter k?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10110#comment:5>
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