]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/test_logistic_dist.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / math / test / test_logistic_dist.cpp
index eeb23ced657745d4f2af7c1869f78f8a64ed0eaf..72f6e01d154bcc574a147ff8dc52e35e7f2a7301 100644 (file)
@@ -225,7 +225,7 @@ void test_spots(RealType T)
    // Things that are errors:
    // 1. Domain errors for scale and location.
    // 2. x being NAN.
-   // 3. Probabilies being outside (0,1).
+   // 3. Probabilities being outside (0,1).
    check_out_of_range<logistic_distribution<RealType> >(0, 1);
    if(std::numeric_limits<RealType>::has_infinity)
    {
@@ -349,6 +349,13 @@ void test_spots(RealType T)
       static_cast<RealType>(1.2L),              // probability
       tolerance);
 
+   BOOST_CHECK_CLOSE(
+      ::boost::math::entropy(
+      logistic_distribution<RealType>(2,1)
+      ),
+      static_cast<RealType>(2),
+      tolerance);
+
 } // template <class RealType>void test_spots(RealType)