Package gpl.whiten

Class SimpleWhitener

java.lang.Object
gpl.whiten.SimpleWhitener
All Implemented Interfaces:
TimeWhitener

public class SimpleWhitener extends Object implements TimeWhitener
  • Constructor Details

    • SimpleWhitener

      public SimpleWhitener(double scaleFac)
  • Method Details

    • whitenData

      public double[] whitenData(double[] background, double[] rawData)
      Description copied from interface: TimeWhitener
      Whiten spectral data
      Specified by:
      whitenData in interface TimeWhitener
      Parameters:
      background - spectral mean values returned from a call to addBackground
      rawData - abs spec data only with bins in range of interest
      Returns:
      double array of background means.
    • addBackground

      public void addBackground(double[] specData)
      Description copied from interface: TimeWhitener
      Add data to background data store.
      Specified by:
      addBackground in interface TimeWhitener
      Parameters:
      specData - abs spec data only with bins in range of interest
    • getBackground

      public double[] getBackground()
      Description copied from interface: TimeWhitener
      Get the current background
      Specified by:
      getBackground in interface TimeWhitener
      Returns:
      the mean, median, or whatever, background