【发布时间】:2021-05-04 11:51:50
【问题描述】:
我需要以下 MATLAB 代码的 python 等效代码:
[f,xi] = ksdensity(data,'Support','positive','Function','cdf');
我找到了下面的 python 代码,但我不知道如何提供它的cdf。如果您能指导我,我将不胜感激。
from scipy import stats
kde = stats.gaussian_kde(data)
【问题讨论】:
-
您能描述一下
ksdensity的作用吗?还是我们必须查一下?您可能比我们大多数人更详细地研究了 MATLAB 和scipy的文档。
标签: python matlab scipy scipy.stats