The OpenD Programming Language

entropy

Computes the entropy of the input. By default, if F is not a floating point type, then the result will have a double type if F is implicitly convertible to a floating point type.

  1. entropyType!Range entropy(Range r)
    template entropy(F, Summation summation = Summation.appropriate)
    entropy
    (
    Range
    )
    (
    Range r
    )
    if ()
  2. entropyType!F entropy(F[] ar)
  3. template entropy(Summation summation = Summation.appropriate)
  4. template entropy(F, string summation)
  5. template entropy(string summation)

Members

Functions

entropy
entropyType!Range entropy(Range r)
entropy
entropyType!F entropy(F[] ar)

Parameters

F

controls type of output

summation

algorithm for summing the individual entropy values (default: Summation.appropriate)

Return Value

The entropy of all the elements in the input, must be floating point type

See Also

$(MATHREF sum, Summation)

Meta