示例#1
0
def cconv_2(x):
    return numeric.circconv([x[0],x[1]],[x[2],x[3]])
示例#2
0
def cconv_3(x):
    return numeric.circconv([x[0],x[1],x[2]],[x[3],x[4],x[5]])
示例#3
0
 def origin_C(self):
     if self.gate > 0.1:
         return [0] * len(self.A)
     else:
         return circconv(self.A, self.B)
示例#4
0
 def convolution(x):
     import numeric
     return numeric.circconv([x[0], x[1], x[2]],
                             [x[3], x[4], x[5]])
示例#5
0
 def origin_C(self):
     if self.gate > 0.1:
         return [0] * len(self.A)
     else:
         return circconv(self.A, self.B)
示例#6
0
文件: hrr.py 项目: travisfw/nengo
 def __imul__(self, other):
     self.v = circconv(self.v, other.v)
     #self.v=ifft(fft(self.v)*fft(other.v))
     return self
示例#7
0
文件: hrr.py 项目: travisfw/nengo
 def convolve(self, other):
     x = circconv(self.v, other.v)
     #x=ifft(fft(self.v)*fft(other.v)).real
     return HRR(data=x)
示例#8
0
文件: hrr.py 项目: Elhamahm/nengo_1.4
 def __imul__(self,other):
     self.v=circconv(self.v,other.v)
     #self.v=ifft(fft(self.v)*fft(other.v))
     return self
示例#9
0
文件: hrr.py 项目: Elhamahm/nengo_1.4
 def convolve(self,other):
     x=circconv(self.v,other.v)
     #x=ifft(fft(self.v)*fft(other.v)).real
     return HRR(data=x)