Package gpl.whiten
Class SimpleWhitener
java.lang.Object
gpl.whiten.SimpleWhitener
- All Implemented Interfaces:
TimeWhitener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBackground
(double[] specData) Add data to background data store.double[]
Get the current backgrounddouble[]
whitenData
(double[] background, double[] rawData) Whiten spectral data
-
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 interfaceTimeWhitener
- Parameters:
background
- spectral mean values returned from a call to addBackgroundrawData
- 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 interfaceTimeWhitener
- 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 interfaceTimeWhitener
- Returns:
- the mean, median, or whatever, background
-