|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55853 - in sandbox/statistics/random: boost/random libs/random/doc libs/random/example
From: erwann.rogard_at_[hidden]
Date: 2009-08-28 20:47:25
Author: e_r
Date: 2009-08-28 20:47:25 EDT (Fri, 28 Aug 2009)
New Revision: 55853
URL: http://svn.boost.org/trac/boost/changeset/55853
Log:
modif
Text files modified:
sandbox/statistics/random/boost/random/categorical_distribution.hpp | 2 +-
sandbox/statistics/random/libs/random/doc/readme.txt | 5 +++--
sandbox/statistics/random/libs/random/example/categorical.cpp | 7 +++----
3 files changed, 7 insertions(+), 7 deletions(-)
Modified: sandbox/statistics/random/boost/random/categorical_distribution.hpp
==============================================================================
--- sandbox/statistics/random/boost/random/categorical_distribution.hpp (original)
+++ sandbox/statistics/random/boost/random/categorical_distribution.hpp 2009-08-28 20:47:25 EDT (Fri, 28 Aug 2009)
@@ -20,7 +20,7 @@
namespace boost{
namespace random{
-// See alternate implementation : discrete_distribution
+// Deprecated : see discrete_distribution
//
// Usage:
// typedef categorical_distribution<> rmult_;
Modified: sandbox/statistics/random/libs/random/doc/readme.txt
==============================================================================
--- sandbox/statistics/random/libs/random/doc/readme.txt (original)
+++ sandbox/statistics/random/libs/random/doc/readme.txt 2009-08-28 20:47:25 EDT (Fri, 28 Aug 2009)
@@ -13,7 +13,7 @@
[ Overview ]
-These are C++ that extend the boost::random framework
+These are C++ that extend the boost::random framework.
[ Useful links ]
@@ -44,5 +44,6 @@
[ History ]
-July 2009 : Current version
+August 18 2009 : renamed multinomial_distribution to categorical_distribution
+July 2009 : Current version
Modified: sandbox/statistics/random/libs/random/example/categorical.cpp
==============================================================================
--- sandbox/statistics/random/libs/random/example/categorical.cpp (original)
+++ sandbox/statistics/random/libs/random/example/categorical.cpp 2009-08-28 20:47:25 EDT (Fri, 28 Aug 2009)
@@ -45,8 +45,8 @@
out << "categorical : ";
t.restart();
binary_op::sort_on_head_greater(
- boost::begin(weights),
- boost::end(weights),
+ boost::begin(sorted_weights),
+ boost::end(sorted_weights),
boost::begin(values)
);
cat_dist_ cat_dist(sorted_weights);
@@ -71,11 +71,10 @@
out << std::endl << "discrete : ";
t.restart();
for(unsigned i = 0; i<m; i++){
- cat_dist(urng);
+ discr(urng);
}
out << (format("t = %1%")%t.elapsed()).str();
-
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk