This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.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.14.0.