Create a gist now

Instantly share code, notes, and snippets.

anonymous /graph_calculation_T.txt
Created Nov 10, 2016

What would you like to do?
ys = [a[0] * b[0]]
A = 0
B = 0
multiplier = exp(k)
for t in 1:T
A += a[t - 1]
B += b[t - 1]
y = ys[-1] * multiplier
y += A * b[t]
y += a[t] * B
y += a[t] * b[t]
ys.push(y)
return ys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment