diff --git a/src/antropy/entropy.py b/src/antropy/entropy.py index 34cb8e8..797b0d6 100644 --- a/src/antropy/entropy.py +++ b/src/antropy/entropy.py @@ -31,12 +31,11 @@ # the ordinal index from a small pre-computed table. This avoids the O(m # log m) sort and replaces it with O(m) bitwise operations. # -# Note: equal values (ties) are encoded as False by '<', which may assign -# them to a different ordinal pattern than argsort would. For the typical -# case of continuous data this never occurs in practice. +# Comparisons use '<=' because the left column always has the earlier +# position. This breaks ties by position, matching stable argsort. # --------------------------------------------------------------------------- -# order=3 — key bits: bit2=(a