Beispiel #1
0
def cconv_2(x):
    return numeric.circconv([x[0],x[1]],[x[2],x[3]])
Beispiel #2
0
def cconv_3(x):
    return numeric.circconv([x[0],x[1],x[2]],[x[3],x[4],x[5]])
Beispiel #3
0
 def origin_C(self):
     if self.gate > 0.1:
         return [0] * len(self.A)
     else:
         return circconv(self.A, self.B)
Beispiel #4
0
 def convolution(x):
     import numeric
     return numeric.circconv([x[0], x[1], x[2]],
                             [x[3], x[4], x[5]])
Beispiel #5
0
 def origin_C(self):
     if self.gate > 0.1:
         return [0] * len(self.A)
     else:
         return circconv(self.A, self.B)
Beispiel #6
0
 def __imul__(self, other):
     self.v = circconv(self.v, other.v)
     #self.v=ifft(fft(self.v)*fft(other.v))
     return self
Beispiel #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)
Beispiel #8
0
 def __imul__(self,other):
     self.v=circconv(self.v,other.v)
     #self.v=ifft(fft(self.v)*fft(other.v))
     return self
Beispiel #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)