Commits

Anonymous committed 6a74bec

updated synthetic

  • Participants
  • Parent commits a345c7a

Comments (0)

Files changed (2)

examples/synthetic.py

 ss = [np.sin(twopi*f*t) for f in [1,2,5,10,20]]
 y = np.zeros(len(t),dtype='float64')
 
-sy = smt.st(y, 0,10)
+for s in ss:  y+= s
 
+sy = smt.st(y)
+rsy = abs(sy)
+sy10 = smt.st(y,0,100)
+rsy10 = abs(sy10)
 
 
+K=4
+N=len(t)
+tapers = smt.calc_tapers(K,N)
+mty = smt.mtst(K, tapers, y, 0,70)
 
-#K=4
-#N=len(t)
-#tapers = smt.calc_tapers(K,N)
+# dsplay with
+# figure(); imshow(mty); axis('auto')
+
 
 setup(
   name = 'stockwell',
+  version="0.0.1",
   packages=["stockwell"],
   ext_modules = ext_modules_stockwell,
 )