Created on 2010-08-25.00:00:00 last changed 161 months ago
Proposed resolution:
vector<doubleresult_type> densities() const;
vector<doubleresult_type> densities() const;
[ Adopted at 2010-11 Batavia ]
[ Batavia 2010: After reviewing this issue, the working group concurred with the first of the suggestions proposed by the NB comment: "Change the piecewise constant and linear distributions to hold/return the densities in a vector. " ]
[ Resolution proposed by ballot comment: ]
Change the piecewise constant and linear distributions to hold / return the densities in a vector<result_type>.
If this is not done, at least correct [rand.dist.samp.pconst] p. 13 which describes the return of densities as a vector<result_type>.
Addresses US-134
These two distributions have a member function called densities() which returns a vector<double>. The distribution is templated on RealType. The distribution also has another member called intervals() which returns a vector<RealType>. Why doesn't densities return vector<RealType> as well? If RealType is long double, the computed densities property isn't being computed to the precision the client desires. If RealType is float, the densities vector is taking up twice as much space as the client desires.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-11-24 14:01:03 | admin | set | messages: + msg5435 |
2010-11-14 13:10:57 | admin | set | status: voting -> wp |
2010-11-13 01:17:02 | admin | set | status: open -> voting |
2010-11-13 01:11:40 | admin | set | status: immediate -> open |
2010-11-11 19:37:47 | admin | set | messages: + msg5337 |
2010-11-11 19:37:47 | admin | set | messages: + msg5336 |
2010-11-11 19:37:47 | admin | set | status: open -> immediate |
2010-10-24 03:04:13 | admin | set | messages: + msg4933 |
2010-08-25 00:00:00 | admin | create |