# associative network with 4 memories & 50 neurons # # the memories table x1 % 50 0 49 ((t>=18)&(t<=30))-al table x2 % 50 0 49 (mod(t,4)==0)-al # random memories table x3 % 50 0 49 (ran(1)>.75)-al table x4 % 50 0 49 (ran(1)>.75)-al # dot products with each vdot[1..4]=1.25*sum(0,49)of(shift(v0,i')*x[j](i'))/(50*al*(1-al)) # total activity vtot=sum(0,49)of(shift(v0,i'))/(al*50) # nonlinearity f(i)=fmax*max(tanh((i-gam)/fmax),0) par fmax=150,gam=-20 par al=.25 v[0..49]'=-v[j]+f(x1([j])*vdot1+x2([j])*vdot2+x3([j])*vdot3+x4([j])*vdot4-vtot) @ bound=1000 @ total=42 done # Click on Initconds formUla # variable: v[0..49] # formula: 5*x1([j])+ran(1)-.5 # use the array plot to see everything - click on V0 and V49 in the # initial Data Window and then click on ARRY