Package amplifier

Class AmplifiedDataBlock


public class AmplifiedDataBlock extends PamRawDataBlock
  • Constructor Details

    • AmplifiedDataBlock

      public AmplifiedDataBlock(String name, PamProcess parentProcess, int channelMap, float sampleRate)
    • AmplifiedDataBlock

      public AmplifiedDataBlock(String name, PamProcess parentProcess, int channelMap, float sampleRate, boolean autoDisplay)
  • Method Details

    • setDataGain

      public void setDataGain(double[] gain)
    • getDataGain

      public double getDataGain(int chan)
      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 PamDataBlock<RawDataUnit>
      Parameters:
      chan - channel number
      Returns:
      gain as a factor (to allow for negative gains)