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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBackground
(double[] rawData) Add data to background data store.double[]
Get the current backgroundvoid
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
-
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 interfaceTimeWhitener
- 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 interfaceTimeWhitener
- 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 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
-
-