我想在Python中找出一种方法,基于滚动标准偏差中的跳转,如何识别事件何时发生。基于Python中的滚动差异跳转识别事件
如下图所示,在第12000个样本中,出现event
。在我的Python脚本中,我目前使用阈值0.00051
来表示该事件何时发生。然而,有时event
出现在0.0005
和其他时间event
发生在0.000495
。
我的问题是 - 我怎样才能算法,在Python中,检测到这一跳在滚动标准偏差以创建事件altert?因为如果我的门槛太低,我不希望太早触发它。如果我运行另一个测试,并且阈值太高,那么我不希望事件不会被触发。
任何意见非常感谢!
def animate(i):
data = pd.read_csv("C:\\Users\\Desktop\\data.txt", sep="\[|\]\[|\]",engine = 'python', header = None)
data = data.iloc[0, ::4]
data = data.astype(str).apply(lambda x: x.split(',')[-1]).astype(float)
data.pop(0)
xar = range(len(data))
yar = pd.DataFrame(data)
# Starting from sample 1050 to get rid of any initial noise
yar = yar[1050:12500]
xar = xar[1050:12500]
std = yar.rolling(window=2500).std()
if (np.any(std>.00051)):
choices = ["Confirm Event"]
reply = easygui.buttonbox("Event Alert!, image, choices)
if reply == "Confirm Event":
sys.exit(0)
ax1.clear()
ax1.plot(xar,std)
ax1.set_title('Rolling Standard Deviation')
fig, (ax1) = plt.subplots(1, sharex = True)
ani = animation.FuncAnimation(fig, animate, interval=.01)
plt.show()
编辑瓦特/代码
import pandas as pd
import scipy
import sys
import numpy as np
import easygui
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def animate(i):
data = pd.read_csv("C:\\Users\\Desktop\\data.txt", sep="\[|\]\[|\]",engine = 'python', header = None)
data = data.iloc[0, ::4]
data = data.astype(str).apply(lambda x: x.split(',')[-1]).astype(float)
data.pop(0)
xar = range(len(data))
#yar = data.as_matrix()
yar = pd.DataFrame(data)
L=2500
# Starting from sample 1050 to get rid of any initial noise
yar = yar[1050:len(data)]
xar = xar[1050:len(data)]
std = yar.rolling(window=2500).std()
std = std.as_matrix()
#s = [np.std(yar[ii:ii+L]) for ii in range(1050,len(data))]
yar = data.as_matrix()
yar = yar[1050:len(data)]
d = np.diff(yar)
d2 = d*d
## rolling mean of the diff squared:
SS = [np.mean(d2[ii:ii+L]) for ii in range(1050, len(d2)-L)]
# compute the F statistic
F = np.array([SS[ii]/SS[ii+L] for ii in range(1050, len(SS)-L)])
w = np.where(np.less(F,1))
F[w]=1/F[w]
# the x coordinate of the point where shift happens is offset by L from the computed F:
xi = np.arange(0,len(F))+L
ax1.clear()
ax2.clear()
ax3.clear()
ax1.plot(xar, std)
ax2.plot(xi, F)
ax3.plot(xar, yar)
ax1.set_title('Rolling Standard Deviation')
ax2.set_title('F - values')
ax3.set_title('Original Data')
fig, (ax1, ax2, ax3) = plt.subplots(3, sharex = True)
fig.subplots_adjust(hspace=1.5)
ani = animation.FuncAnimation(fig, animate, interval=.01)
plt.show()
我的数据如下所示:
[0.013671875, -0.9599609375, -0.005859375][0.013671875, -0.9599609375, -0.005859375][0.013671875, -0.9599609375, -0.005859375][0.0068359375, -0.8193359375, -0.0029296875][0.0068359375, -0.8193359375, -0.0029296875][0.0068359375, -0.8193359375, -0.0029296875][0.0068359375, -0.8193359375, -0.0029296875][0.0068359375, -0.8193359375, -0.0029296875][0.0068359375, -0.8193359375, -0.0029296875][0.0068359375, -0.8193359375, -0.0029296875][0.0068359375, -0.8193359375, -0.0029296875][0.0087890625, -0.990234375, -0.0048828125][0.0087890625, -0.990234375, -0.0048828125][0.0087890625, -0.990234375, -0.0048828125][0.0087890625, -0.990234375, -0.0048828125][0.0087890625, -0.990234375, -0.0048828125][0.0087890625, -0.990234375, -0.0048828125][0.0068359375, -0.951171875, -0.00390625][0.0068359375, -0.951171875, -0.00390625][0.0068359375, -0.951171875, -0.00390625][0.0068359375, -0.951171875, -0.00390625][0.0068359375, -0.951171875, -0.00390625][0.0068359375, -0.951171875, -0.00390625][0.0068359375, -0.951171875, -0.00390625][0.0068359375, -0.951171875, -0.00390625][0.009765625, -0.9560546875, -0.0048828125][0.009765625, -0.9560546875, -0.0048828125][0.009765625, -0.9560546875, -0.0048828125][0.009765625, -0.9560546875, -0.0048828125][0.009765625, -0.9560546875, -0.0048828125][0.009765625, -0.9560546875, -0.0048828125][0.009765625, -0.9560546875, -0.0048828125][0.009765625, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0068359375, -0.9560546875, -0.0048828125][0.0068359375, -0.9560546875, -0.0048828125][0.0068359375, -0.9560546875, -0.0048828125][0.0068359375, -0.9560546875, -0.0048828125][0.0068359375, -0.9560546875, -0.0048828125][0.0068359375, -0.9560546875, -0.0048828125][0.0068359375, -0.9560546875, -0.0048828125][0.0068359375, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.005859375][0.0087890625, -0.9560546875, -0.005859375][0.0087890625, -0.9560546875, -0.005859375][0.0087890625, -0.9560546875, -0.005859375][0.0087890625, -0.9560546875, -0.005859375][0.0087890625, -0.9560546875, -0.005859375][0.0087890625, -0.9560546875, -0.005859375][0.0087890625, -0.9560546875, -0.005859375][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0087890625, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0087890625, -0.955078125, -0.0048828125][0.0068359375, -0.9560546875, -0.00390625][0.0068359375, -0.9560546875, -0.00390625][0.0068359375, -0.9560546875, -0.00390625][0.0068359375, -0.9560546875, -0.00390625][0.0068359375, -0.9560546875, -0.00390625][0.0068359375, -0.9560546875, -0.00390625][0.0068359375, -0.9560546875, -0.00390625][0.0068359375, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0078125, -0.955078125, -0.00390625][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0087890625, -0.9560546875, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.955078125, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.00390625][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125][0.0078125, -0.9560546875, -0.0048828125]
是事件相当罕见?您可以在兴趣点前后进行N个点的直线拟合 - 当斜率发生变化时,拟合效果最好。如果坡度的变化发生得早或晚,则配合会变差。这意味着一个“合适的善良”的阴谋将有一个明确的最低限度。这会有帮助吗? – Floris
是的,该事件只发生一次。你知道一个与你所描述的内容类似的例子吗? – Gary
我会创建一个例子。你能否给出更多关于如何计算滚动标准偏差的背景?平均有多少个数据点? “事件”有何不同 - 它是源数据中的单一点还是数据中的噪声变化? – Floris