Class BeamFormerDataBlock


public class BeamFormerDataBlock extends FFTDataBlock
  • Constructor Details

    • BeamFormerDataBlock

      public BeamFormerDataBlock(String dataName, PamProcess parentProcess, int channelMap, int fftHop, int fftLength)
  • Method Details

    • getChannelsForSequenceMap

      public int getChannelsForSequenceMap(int sequenceMap)
      Description copied from class: PamDataBlock
      Given a sequenceMap, this method returns the associated channelMap. By default, this simply returns passed parameter. For the majority of the PamDataBlocks this is correct because there won't be a sequenceMap. This method should be used when the calling function is given a channel but it does not know whether that is truly a channel, or actually a sequence number. It can pass the channel to this method; if the PamDataBlock doesn't have sequence numbers then the number really was a channel and the calling function will get the same number returned.

      This method MUST BE OVERRIDDEN in any module that actually uses sequences (e.g. the Beamformer module) to properly map the sequenceMap to the channelMap.

      Overrides:
      getChannelsForSequenceMap in class PamDataBlock<FFTDataUnit>
      Returns:
      the associated channelMap
    • getDataGain

      public double getDataGain(int iChan)
      Description copied from class: PamDataBlock
      Return the gain applied to any data created into this datablock.

      Example 1: The amplifier module will just return it's gain

      Example 2: The FFT module will return the loss due to windowing the data.

      To convert to dB use 20*log10(Math.abs(getDataGain()));

      Overrides:
      getDataGain in class FFTDataBlock
      Parameters:
      iChan - channel number
      Returns:
      gain as a factor (to allow for negative gains)