2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

More entropy for continuous distributions [CI SKIP]

This commit is contained in:
NAThompson
2019-12-23 12:43:44 -05:00
parent 64eea0438e
commit 1e9c819300
8 changed files with 53 additions and 2 deletions

View File

@@ -479,6 +479,9 @@ void test_spots(RealType)
BOOST_CHECK_CLOSE_FRACTION(
kurtosis_excess(tridef), static_cast<RealType>(-0.6), tolerance); // Constant value of -3/5 for all distributions.
BOOST_CHECK_CLOSE_FRACTION(
entropy(tridef), static_cast<RealType>(1)/2, tolerance);
{
triangular_distribution<RealType> tri01(0, 1, 1); // Asymmetric 0, 1, 1 distribution.
RealType x = static_cast<RealType>(0.5);