1 차 미분을 분석하여 실제로 좋은 시작을 얻을 수 있습니다. 일차 미분 계수가 0에 가까울 경우 공정 안정을 고려하십시오. 그러나 이것은 '은색 총알'유형의 해결책이 아니며 일부 불쾌한 사례가 예상된다는 점에 유의하십시오. 상기에 기초
어쨌든은 간단한 데모 다음과
같은 출력으로
import numpy as np
# create first some artificial observations
obs= np.array([[0, 1, 1.5, 3.5, 4, 4.5, 7, 9.2, 10.5, 15],
[1, 2, 6, 6.01, 5.5, 4, 4.7, 3.3, 3.7, 3.65]])
x= np.linspace(obs[0][0], obs[0][-1], 1e2)
y= np.interp(x, obs[0], obs[1])
# and add some noise to it
y+= 1e-3* np.random.randn(y.shape[0])
# now find steady state based on first derivative< abs(trh), but
# smooth the signal first by convolving it with suitable kernel
y_s= np.convolve(y, [.2, .6, .2])
d, trh= np.diff(y_s), .015
stable= (np.abs(d)< trh)[:-1]
# and inspect visually
from pylab import grid, plot, show
plot(x, y), plot(x, y_s[1: -1])
plot(x[stable], np.ones(stable.sum()), 's')
grid(True), show()
(여기서 빨간색 점이 상정 정상 프로세스 나타냄)
출처
2011-07-03 16:02:52
eat
이것은 HTTP에 대한 좋은 후보가 될 수있다 : //stats.stackexchange.com. –