This is documentation for an old release of SciPy (version 0.19.1). Read this page in the documentation of the latest stable release (version 1.14.1).
scipy.special.entr¶
-
scipy.special.
entr
(x) = <ufunc 'entr'>¶ Elementwise function for computing entropy.
entr(x)={−xlog(x)x>00x=0−∞otherwiseParameters: x : ndarray
Input array.
Returns: res : ndarray
The value of the elementwise entropy function at the given points x.
Notes
This function is concave.
New in version 0.15.0.