Skip to content

Commit

Permalink
MAINT: Adjust parameters in a demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jluttine committed Apr 22, 2014
1 parent 27c54e5 commit 28856bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bayespy/demos/demo_drift_lssm_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ def simulate_drifting_lssm(M, N):

t = np.tile(np.arange(N), (M,1))
a = 0.1 * 2*np.pi # base frequency
c = 0.01 * 2*np.pi # frequency of the frequency-change
b = 0.5/c # derivative of the inner sin: |-b*c*cos(c*t)| <= |b*c|
f = np.sin( a * (t + b*np.sin(c*t)) )
b = 0.01 * 2*np.pi # frequency of the frequency-change
c = 8
#c = 0.5/c # derivative of the inner sin: |-b*c*cos(c*t)| <= |b*c|
f = np.sin( a * (t + c*np.sin(b*t)) )
y = f + (0.1*np.sqrt(M))*np.random.randn(M,N)

return (y, f)
Expand Down

0 comments on commit 28856bb

Please sign in to comment.