Skip to contents

Binary entropy function

Usage

H_binary(x, na.rm = FALSE)

Arguments

x

Numeric, vector or matrix with numbers between 0 and 1.

na.rm

If TRUE, replace NA values with 0, instead of failing.