Exemplo n.º 1
0
def cconv_2(x):
    return numeric.circconv([x[0],x[1]],[x[2],x[3]])
Exemplo n.º 2
0
def cconv_3(x):
    return numeric.circconv([x[0],x[1],x[2]],[x[3],x[4],x[5]])
Exemplo n.º 3
0
 def origin_C(self):
     if self.gate > 0.1:
         return [0] * len(self.A)
     else:
         return circconv(self.A, self.B)
Exemplo n.º 4
0
 def convolution(x):
     import numeric
     return numeric.circconv([x[0], x[1], x[2]],
                             [x[3], x[4], x[5]])
Exemplo n.º 5
0
 def origin_C(self):
     if self.gate > 0.1:
         return [0] * len(self.A)
     else:
         return circconv(self.A, self.B)
Exemplo n.º 6
0
 def __imul__(self, other):
     self.v = circconv(self.v, other.v)
     #self.v=ifft(fft(self.v)*fft(other.v))
     return self
Exemplo n.º 7
0
 def convolve(self, other):
     x = circconv(self.v, other.v)
     #x=ifft(fft(self.v)*fft(other.v)).real
     return HRR(data=x)
Exemplo n.º 8
0
 def __imul__(self,other):
     self.v=circconv(self.v,other.v)
     #self.v=ifft(fft(self.v)*fft(other.v))
     return self
Exemplo n.º 9
0
 def convolve(self,other):
     x=circconv(self.v,other.v)
     #x=ifft(fft(self.v)*fft(other.v)).real
     return HRR(data=x)