Skip to contents

-sum(p log2 p) over the histogram probabilities.

Usage

morie_dsp_entropy_histogram(x, n_bins = 50L)

Arguments

x

Numeric vector.

n_bins

Number of bins. Default 50.

Value

Scalar (bits).

References

Rangayyan & Krishnan (2015), Ch. 5, sec. 5.6.