JuliaDynamics / ComplexityMeasures.jl

Estimators for probabilities, entropies, and other complexity measures derived from data in the context of nonlinear dynamics and complex systems
MIT License
54 stars 12 forks source link

Allow some variation in differential entropy analytical tests #214

Closed kahaaga closed 1 year ago

kahaaga commented 1 year ago

Test for differential entropy estimators occasionally fail on CI. Because we're using random data from certain probability distributions to estimate the true entropy, the estimates may not be entirely accurate. Currently, it is just tested whether the estimated entropy is equal to the analytical entropy (rounded to two decimal points). However, we should allow some more slack (e.g. 5% or something), so tests don't randomly fail.

This happened for example in #213 .