跳转到主要内容

提供数据集上的移动平均。

项目描述

模块用于计算列表的移动平均。例如

from movingaverage import movingaverage print list(movingaverage([1,2,3,4,5,6], 3)) >>> [2,3,4,5]

movingaverage(data, sample_size)

返回数据的移动平均值,窗口大小为 sample_sizesample_size 必须是大于0的整数。

由以下组织支持

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF 赞助商 PingdomPingdom 监控 SentrySentry 错误记录 StatusPageStatusPage 状态页面