Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
for t in range(0,stream):
x = x0 + amplitude*np.cos(omega * t)
y = amplitude*np.cos(omega * t)*getobs(x,5,variance)
values = matrixpush(values, np.array([t,x,y]))
if np.all(np.isfinite(values[:,0])):
x0 = x0 + learnrate * sum( values[:,2] ) / inttime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment