-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathwarp.py
executable file
·39 lines (33 loc) · 982 Bytes
/
warp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
#
# Copyright 2011 by Idiap Research Institute, http://www.idiap.ch
#
# See the file COPYING for the licence associated with this software.
#
# Author(s):
# Phil Garner
#
import numpy as np
import matplotlib.pyplot as plt
import ssp
i = np.identity(30)
o1 = ssp.AllPassWarpOppenheim(i, alpha=0, size=40)
o2 = ssp.AllPassWarpOppenheim(i, alpha=0.1, size=40)
o3 = ssp.AllPassWarpOppenheim(i, alpha=0.3, size=40)
#o5 = ssp.AllPassWarpOppenheim(i, alpha=-0.1, size=40)
#o6 = ssp.AllPassWarpOppenheim(i, alpha=-0.3, size=40)
o5 = ssp.AllPassWarpMatrix(30, alpha=-0.1, size=40)
o6 = ssp.AllPassWarpMatrix(30, alpha=-0.3, size=40)
#m = ssp.AllPassWarpMatrix(4, alpha=0.42, size=40)
fig = plt.figure()
o1Mat = fig.add_subplot(2,3,1)
o2Mat = fig.add_subplot(2,3,2)
o3Mat = fig.add_subplot(2,3,3)
o5Mat = fig.add_subplot(2,3,5)
o6Mat = fig.add_subplot(2,3,6)
o1Mat.imshow(o1.T)
o2Mat.imshow(o2.T)
o3Mat.imshow(o3.T)
o5Mat.imshow(o5)
o6Mat.imshow(o6)
plt.show()