Beefed up the tests for all of the distributions to include checks against the expected skewness and kurtosis

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-05-16 17:56:20 +00:00
parent 9cb70437e2
commit df40dc6c1a
22 changed files with 2182 additions and 297 deletions

View File

@@ -3434,9 +3434,7 @@ public:
void param(const param_type& __p) {__p_ = __p;}
result_type min() const {return 0;}
result_type max() const
{return -std::log(1-std::nextafter(result_type(1), result_type(-1))) /
__p_.lambda();}
result_type max() const {return numeric_limits<result_type>::infinity();}
friend bool operator==(const exponential_distribution& __x,
const exponential_distribution& __y)