Exemplo n.º 1
0
	def norm(self, fft):
		# FIXME I don't need abs, since I do a log anyway after that
		# real**2 + imag**2 is enough, the sqrt is superfluous
		# This should be done in Cython, too costly in numpy
		return pyx_norm_square(fft, 1./self.size_sq)
Exemplo n.º 2
0
 def norm_square(self, fft):
     # return (fft.real**2 + fft.imag**2) / self.size_sq
     # This is done in Cython, too costly in numpy
     return pyx_norm_square(fft, 1. / self.size_sq)
Exemplo n.º 3
0
 def norm_square(self, fft):
     # return (fft.real**2 + fft.imag**2) / self.size_sq
     # This is done in Cython, too costly in numpy
     return pyx_norm_square(fft, 1. / self.size_sq)