本文簡要介紹 python 語言中 scipy.stats.rv_continuous.entropy
的用法。
用法:
rv_continuous.entropy(*args, **kwds)#
RV的微分熵。
- arg1, arg2, arg3,…: array_like
分布的形狀參數(有關更多信息,請參見實例對象的文檔字符串)。
- loc: 數組,可選
位置參數(默認 = 0)。
- scale: 數組,可選(僅限連續分布)。
比例參數(默認值=1)。
參數 ::
注意:
熵以 e 為底定義:
>>> import numpy as np >>> from scipy.stats._distn_infrastructure import rv_discrete >>> drv = rv_discrete(values=((0, 1), (0.5, 0.5))) >>> np.allclose(drv.entropy(), np.log(2.0)) True
相關用法
- Python SciPy rv_continuous.expect用法及代碼示例
- Python SciPy rv_continuous.fit用法及代碼示例
- Python SciPy rv_histogram.fit用法及代碼示例
- Python SciPy rv_histogram.expect用法及代碼示例
- Python SciPy rv_histogram.entropy用法及代碼示例
- Python SciPy rv_discrete.entropy用法及代碼示例
- Python SciPy interpolate.make_interp_spline用法及代碼示例
- Python SciPy stats.anderson用法及代碼示例
- Python SciPy ClusterNode.pre_order用法及代碼示例
- Python SciPy stats.iqr用法及代碼示例
- Python SciPy FortranFile.read_record用法及代碼示例
- Python SciPy ndimage.correlate用法及代碼示例
- Python SciPy special.exp1用法及代碼示例
- Python SciPy special.expn用法及代碼示例
- Python SciPy signal.czt_points用法及代碼示例
- Python SciPy interpolate.krogh_interpolate用法及代碼示例
- Python SciPy ndimage.morphological_gradient用法及代碼示例
- Python SciPy distance.sokalmichener用法及代碼示例
- Python SciPy linalg.eigvalsh_tridiagonal用法及代碼示例
- Python SciPy linalg.cdf2rdf用法及代碼示例
- Python SciPy csc_array.diagonal用法及代碼示例
- Python SciPy fft.idctn用法及代碼示例
- Python SciPy linalg.LaplacianNd用法及代碼示例
- Python SciPy linalg.solve_circulant用法及代碼示例
- Python SciPy hierarchy.ward用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.stats.rv_continuous.entropy。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。