]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/distributions/rayleigh.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / math / distributions / rayleigh.hpp
index 744733a9faf380583982293aa459e954f20001ac..95c866a13fba70c7f0920f78c8c3948d30540d3d 100644 (file)
@@ -286,6 +286,13 @@ inline RealType kurtosis_excess(const rayleigh_distribution<RealType, Policy>& /
   //   (four_minus_pi<RealType>() * four_minus_pi<RealType>());
 } // kurtosis
 
+template <class RealType, class Policy>
+inline RealType entropy(const rayleigh_distribution<RealType, Policy>& dist)
+{
+   using std::log;
+   return 1 + log(dist.sigma()*constants::one_div_root_two<RealType>()) + constants::euler<RealType>()/2;
+}
+
 } // namespace math
 } // namespace boost