Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Aggelos Ragkousis
Added: Oct 24, 2020 5:23 PM
Views: 9
Tags: no tags
  1.  
  2. def data_gen():
  3.     for cnt in itertools.count():
  4.         t = cnt / 10
  5.         yield t, np.sin(2*np.pi*t) * np.exp(-t/10.)