This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status.
piecewise_linear_distribution
Section: 29.5.9.6.3 [rand.dist.samp.plinear] Status: C++11 Submitter: INCITS Opened: 2010-08-25 Last modified: 2016-01-28
Priority: Not Prioritized
View all issues with C++11 status.
Discussion:
Addresses US-135
This paragraph says: Let bk = xmin+k·δ for k = 0,...,n, and wk = fw(bk +δ) for k = 0,...,n. However I believe that fw(bk) would be far more desirable. I strongly suspect that this is nothing but a type-o.
[ Resolution proposed by ballot comment: ]
Change p. 10 to read:
Let bk = xmin+k·δ for k = 0,...,n, and wk = fw(bk) for k = 0,...,n.
[ 2010-11-02 Daniel translates into a proposed resolution ]
[ 2010 Batavia: The working group concurred with the issue's Proposed Resolution ]
[ Adopted at 2010-11 Batavia ]
Proposed resolution:
Change 29.5.9.6.3 [rand.dist.samp.plinear] p. 10 as indicated:
10 Effects: Constructs a
piecewise_linear_distribution
object with parameters taken or calculated from the following values: Letbk = xmin+k·δ
fork = 0, . . . , n
, andwk = fw(bk
for+δ)k = 0, . . . , n
.