Class BasicFreqDomBeam
java.lang.Object
beamformer.algorithms.BeamInformation
beamformer.algorithms.basicFreqDomain.BasicFreqDomBeam
- Author:
- mo55
-
Constructor Summary
ConstructorDescriptionBasicFreqDomBeam
(BasicFreqDomBeamFormer beamformer, int channelMap, int sequenceNum, PamVector beamVec, PamVector[] elementLocs, int[] channelList, double[] weights, double[] freqBins, double speedOfSound) Main Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear the list of channel ordersint
int
process
(FFTDataUnit[] fftDataUnits) Process a set of FFTDataUnit objects using the preset frequency bin rangeprocess
(FFTDataUnit[] fftDataUnits, int startBin, int endBin) Process a set of FFTDataUnit objects using a given frequency bin range.void
setWeights
(double[] weights)
-
Constructor Details
-
BasicFreqDomBeam
public BasicFreqDomBeam(BasicFreqDomBeamFormer beamformer, int channelMap, int sequenceNum, PamVector beamVec, PamVector[] elementLocs, int[] channelList, double[] weights, double[] freqBins, double speedOfSound) Main Constructor.- Parameters:
beamformer
- The BasicFreqDomBeamFormer creating this beamchannelMap
- a bitmap indicating which channels are part of this groupsequenceNum
- the sequence number of this beambeamVec
- A PamVector describing this beam directionelementLocs
- an array of PamVectors giving the hydrophone element X,Y,Z locations, one PamVector for each element in this groupchannelList
- a list of channels in this beam. Note that the order of the list MUST MATCH the order of the locations in elementLocsweights
- an array of double values, one for each element in this group.freqBins
- an array of frequencies to calculate the steering vector overspeedOfSound
- the speed of sound in the water
-
-
Method Details
-
process
Process a set of FFTDataUnit objects using the preset frequency bin range- Parameters:
fftDataUnits
- the group of FFTDataUnits to analyse- Returns:
- complex array of summed beamformed data. Note that the size of the array is the number of frequency bins in the full frequency range, as specified by the user in the parameters GUI
-
process
Process a set of FFTDataUnit objects using a given frequency bin range.- Parameters:
fftDataUnits
- the group of FFTDataUnits to analysestartBin
- first bin to processendBin
- last bin to process (not inclusive, so endBin can equal fftLength/2)- Returns:
- complex array of summed beamformed data. Note that the size of the array is the number of frequency bins in the full frequency range, as specified by the user in the parameters GUI, even if only a portion of that range was actually processed
-
getChannelMap
public int getChannelMap()- Returns:
- the channelMap
-
getSequenceMap
public int getSequenceMap()- Returns:
- the sequenceMap
-
setWeights
public void setWeights(double[] weights) - Parameters:
weights
- the weights to set
-
clearChannelOrderList
public void clearChannelOrderList()clear the list of channel orders
-