python画spc控制图_在Python中控制图表

I currently use R routinely for statistical process control. With this I can produce control charts such as EWMA, Shewhart, CUSUM and GAM / Loess smoothing.

Does anyone know of the best way to do these types of charts using Python? I initially looked at scikits.timeseries but it has been canned to contribute to pandas.

I had a look at pandas and although it does have EWMA functionality, I need a little bit more.

解决方案

Just found this package that has not been updated in a while, but works so far in Python 2.7.3 (on 64-bit Windows 7, using pretty up-to-date supporting packages):

In [1]: import spc

In [2]: import matplotlib.pyplot as plt

In [3]: x = [25,19,14,17,25,39,49,6,11,19,13,26,24,32,14,19]

In [4]: cc = spc.Spc(x, spc.CHART_X_MR_X)

In [5]: cc.get_chart()

In [6]: plt.show()

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值