Package gpl.whiten

Class Base3xWhitener

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

public class Base3xWhitener extends Object implements TimeWhitener
Whitens data in time using the methods provided by Gerald d'Spain and used in Tyler Helbles paper. Uses order statistics to calculate a mean background over the last minute of data.
Author:
dg50
  • Constructor Summary

    Constructors
    Constructor
    Description
    Base3xWhitener(int nPoints, double whiteFac, int binLo, int binHigh)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addBackground(double[] rawData)
    Add data to background data store.
    double[]
    Get the current background
    void
    setAutoInitialise(int autoInitialise)
    Tell the sorters to automatically fill themselves with repeated data at startup when autoInitialise input datas have arrived.
    double[]
    whitenData(double[] specMean, double[] specData)
    Whiten spectral data

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Base3xWhitener

      public Base3xWhitener(int nPoints, double whiteFac, int binLo, int binHigh)
  • Method Details

    • addBackground

      public void addBackground(double[] rawData)
      Description copied from interface: TimeWhitener
      Add data to background data store.
      Specified by:
      addBackground in interface TimeWhitener
      Parameters:
      rawData - 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
    • whitenData

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

      public void setAutoInitialise(int autoInitialise)
      Tell the sorters to automatically fill themselves with repeated data at startup when autoInitialise input datas have arrived. This can speed up algorithm settling at detector startup.
      Parameters:
      autoInitialise -