|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63331 - in trunk: boost/random libs/random/test
From: steven_at_[hidden]
Date: 2010-06-25 20:15:58
Author: steven_watanabe
Date: 2010-06-25 20:15:56 EDT (Fri, 25 Jun 2010)
New Revision: 63331
URL: http://svn.boost.org/trac/boost/changeset/63331
Log:
Fix a few typos and copy/paste errors.
Text files modified:
trunk/boost/random/weibull_distribution.hpp | 2 +-
trunk/libs/random/test/test_gamma.cpp | 2 +-
trunk/libs/random/test/test_weibull.cpp | 10 +++++-----
trunk/libs/random/test/test_weibull_distribution.cpp | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
Modified: trunk/boost/random/weibull_distribution.hpp
==============================================================================
--- trunk/boost/random/weibull_distribution.hpp (original)
+++ trunk/boost/random/weibull_distribution.hpp 2010-06-25 20:15:56 EDT (Fri, 25 Jun 2010)
@@ -83,7 +83,7 @@
explicit weibull_distribution(RealType a_arg = 1.0, RealType b_arg = 1.0)
: _a(a_arg), _b(b_arg)
{}
- /** Constructs a @c weilbull_distribution from its parameters. */
+ /** Constructs a @c weibull_distribution from its parameters. */
explicit weibull_distribution(const param_type& parm)
: _a(parm.a()), _b(parm.b())
{}
Modified: trunk/libs/random/test/test_gamma.cpp
==============================================================================
--- trunk/libs/random/test/test_gamma.cpp (original)
+++ trunk/libs/random/test/test_gamma.cpp 2010-06-25 20:15:56 EDT (Fri, 25 Jun 2010)
@@ -60,7 +60,7 @@
}
int usage() {
- std::cerr << "Usage: test_gamma -r <repeat> -n <max n> -t <trials>" << std::endl;
+ std::cerr << "Usage: test_gamma -r <repeat> -a <max alpha> -b <max beta> -t <trials>" << std::endl;
return 2;
}
Modified: trunk/libs/random/test/test_weibull.cpp
==============================================================================
--- trunk/libs/random/test/test_weibull.cpp (original)
+++ trunk/libs/random/test/test_weibull.cpp 2010-06-25 20:15:56 EDT (Fri, 25 Jun 2010)
@@ -1,4 +1,4 @@
-/* test_gamma.cpp
+/* test_weibull.cpp
*
* Copyright Steven Watanabe 2010
* Distributed under the Boost Software License, Version 1.0. (See
@@ -22,12 +22,12 @@
#include "statistic_tests.hpp"
-bool do_test(double alpha, double beta, int max) {
- std::cout << "running gamma(" << alpha << ", " << beta << ")" << " " << max << " times: " << std::flush;
+bool do_test(double a, double b, int max) {
+ std::cout << "running weibull(" << a << ", " << b << ")" << " " << max << " times: " << std::flush;
- boost::math::weibull_distribution<> expected(alpha, beta);
+ boost::math::weibull_distribution<> expected(a, b);
- boost::random::weibull_distribution<> dist(alpha, beta);
+ boost::random::weibull_distribution<> dist(a, b);
boost::mt19937 gen;
kolmogorov_experiment test(max);
boost::variate_generator<boost::mt19937&, boost::random::weibull_distribution<> > vgen(gen, dist);
Modified: trunk/libs/random/test/test_weibull_distribution.cpp
==============================================================================
--- trunk/libs/random/test/test_weibull_distribution.cpp (original)
+++ trunk/libs/random/test/test_weibull_distribution.cpp 2010-06-25 20:15:56 EDT (Fri, 25 Jun 2010)
@@ -1,4 +1,4 @@
-/* test_gamma_distribution.cpp
+/* test_weibull_distribution.cpp
*
* Copyright Steven Watanabe 2010
* Distributed under the Boost Software License, Version 1.0. (See
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