Loading [MathJax]/jax/output/HTML-CSS/jax.js
SciPy

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=0otherwise
Parameters:

x : ndarray

Input array.

Returns:

res : ndarray

The value of the elementwise entropy function at the given points x.

See also

kl_div, rel_entr

Notes

This function is concave.

New in version 0.15.0.