def nosort process entropy(value: boolean): number
def nosort process entropy(value: date ): number
def nosort process entropy(value: number ): number
def nosort process entropy(value: text ): number
Returns the Shannon entropy (in shannons) of the values in a group.
value: values whose distribution is measured.
Examples
table T = with
[| as A, as B |]
[| 0, "a" |]
[| 0, "a" |]
[| 1, "b" |]
[| 1, "b" |]
[| 1, "b" |]
a = entropy(T.A)
b = entropy(T.B)
table S = with
[| as A, as B |]
[| a, b |]
show table "Entropy" with
S.A
S.B