Advertisement
Nikitka_36

NS L12(8)

May 7th, 2015
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.32 KB | None | 0 0
  1. clear;
  2. x(1)=0.2;
  3. for i=2:200;
  4.     x(i)=(4*(x(i-1)))*(1-x(i-1));
  5. end;
  6. Q=length(x);
  7. v=10;
  8. u=120;
  9. t=x(1,v+1:v+u);
  10.  
  11. for i = 1:v
  12. p(i, 1:u) = x(1,i:i+u-1);
  13. end;
  14. net = newff(minmax(p), [10, 1], {'logsig', 'purelin'});
  15. net = train(net, p, t);
  16. y1 = sim(net, p);
  17. plot(y1 - t)
  18. n = 166
  19. x(n)
  20. sim(net, x(n - v:n-1)')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement