test basic functionality
import mir.math.common: approxEqual; import mir.ndslice.slice: sliced; EntropyAccumulator!(double, Summation.pairwise) x; x.put([0.1, 0.2, 0.3].sliced); assert(x.entropy.approxEqual(-0.913338)); x.put(0.4); assert(x.entropy.approxEqual(-1.279854));
See Implementation