流数据的描述性统计计算
livestat的Python项目详细描述
livestat
python模块,用于计算数据上的运行统计信息,例如在测量流的计时时。
属性: -计数 -最小,最大,平均 -标准差和方差 -峰度和偏度允许测量“数据集的正态性”
主类是livestat,数据可以附加append(x)。对于增量值,deltalivestat提供了一个易于使用的助手。
用法:
from livestat import LiveStat,DeltaLiveStat
x = LiveStat(“optionalname”) x.append(10) x.append(20) print x # count is 2
x = DeltaLiveStat(“dt”) x.append(10) x.append(20) print x # count is 1 containing the difference
#also from array x.extend([10,20,30,40,50])
附加功能:
# the LiveStat objects can be combined for example when performing over different data Windows or in a multiprocessing environment x.merge(y) # now x contains the merge of the statistics
# the LiveStat object can be multipled by scalar or translated, for the objective of performing some unit transformation. All the measures are transformed appropriately x + 5 x * 5
进行中: -核动力支持 -正态性检验