212be41d28a7d40ce63d3ad1c5d3c453a83a1f1c,acoular/fbeamform.py,BeamformerEig,calc,#BeamformerEig#Any#Any#,538
Before Change
h = empty((1, self.grid.size), "d")
// function
beamfunc = self.get_beamfunc("_os")
if self.r_diag:
adiv = 1.0/(numchannels*numchannels-numchannels)
scalefunc = lambda h : adiv*multiply(h, (sign(h)+1-1e-35)/2)
else:
adiv = 1.0/(numchannels*numchannels)
scalefunc = lambda h : adiv*h
for i in self.freq_data.indices:
if not fr[i]:
eva = array(self.freq_data.eva[i][newaxis], dtype="float64")
eve = array(self.freq_data.eve[i][newaxis], dtype="complex128")
After Change
eva = array(self.freq_data.eva[i][newaxis], dtype="float64")
eve = array(self.freq_data.eve[i][newaxis], dtype="complex128")
kji = kj[i, newaxis]
beamformerOutput = beamformerFreq(True, steerVecFormulation, self.r_diag, normFactor, (self.r0, self.rm, kji, eva[:, na:na+1], eve[:, :, na:na+1]))
if self.r_diag: // set (unphysical) negative output values to 0
indNegSign = sign(beamformerOutput) < 0
beamformerOutput[indNegSign] = 0
ac[i] = beamformerOutput
fr[i] = True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: acoular/acoular
Commit Name: 212be41d28a7d40ce63d3ad1c5d3c453a83a1f1c
Time: 2017-10-07
Author: tom.j.gensch@campus.tu-berlin.de
File Name: acoular/fbeamform.py
Class Name: BeamformerEig
Method Name: calc
Project Name: acoular/acoular
Commit Name: 3d5e54b8d683ab0a18210b8d27add5fa35dcb81d
Time: 2018-01-16
Author: tom.j.gensch@campus.tu-berlin.de
File Name: acoular/fbeamform.py
Class Name: BeamformerFunctional
Method Name: calc
Project Name: acoular/acoular
Commit Name: 914ac784d0a616c4f6a030fc8130281269c74432
Time: 2017-10-07
Author: tom.j.gensch@campus.tu-berlin.de
File Name: acoular/fbeamform.py
Class Name: BeamformerBase
Method Name: calc