Package gpl.whiten
Class Base3xWhitener
java.lang.Object
gpl.whiten.Base3xWhitener
- All Implemented Interfaces:
 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 - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddBackground(double[] rawData) Add data to background data store.double[]Get the current backgroundvoidsetAutoInitialise(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 
- 
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:TimeWhitenerAdd data to background data store.- Specified by:
 addBackgroundin interfaceTimeWhitener- Parameters:
 rawData- abs spec data only with bins in range of interest
 - 
getBackground
public double[] getBackground()Description copied from interface:TimeWhitenerGet the current background- Specified by:
 getBackgroundin interfaceTimeWhitener- Returns:
 - the mean, median, or whatever, background
 
 - 
whitenData
public double[] whitenData(double[] specMean, double[] specData) Description copied from interface:TimeWhitenerWhiten spectral data- Specified by:
 whitenDatain interfaceTimeWhitener- Parameters:
 specMean- spectral mean values returned from a call to addBackgroundspecData- 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-
 
 -