3RSSH在Python中平滑

paw*_*man 5 python excel numpy scipy smoothing

我正在寻找运行Python的中值平滑实现.特别是3RSSH.

有一个Excel的实现工作正常:http: //www.quantdec.com/Excel/smoothing.htm

此外,R的平滑功能有3RSSH:http://exploratorydataanalysis.blogspot.com/2009/03/smoothing-on-r.html

但我想要一个Python版本,最好使用numpy/scipy并且找不到.到目前为止,我在谷歌搜索没有运气.

是否有任何库实现这种平滑功能?还是我注定要写一个?:)

abu*_*dis 2

我认为我没有看到 3RSSH 实现,但您可以尝试使用scipy.signal来尝试制作一个。

也许这些足以满足您的申请?

scipy.signal.medfilt

scipy.signal.medfilt2d

scipy.ndimage.filters.median_filter