Package gpl.whiten
Class SimpleWhitener
java.lang.Object
gpl.whiten.SimpleWhitener
- All Implemented Interfaces:
 TimeWhitener
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddBackground(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:TimeWhitenerWhiten spectral data- Specified by:
 whitenDatain 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:TimeWhitenerAdd data to background data store.- Specified by:
 addBackgroundin interfaceTimeWhitener- Parameters:
 specData- 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
 
 
 -