Package gpl.whiten
Interface TimeWhitener
- All Known Implementing Classes:
Base3xWhitener,SimpleWhitener
public interface TimeWhitener
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddBackground(double[] specData) Add data to background data store.double[]Get the current backgrounddouble[]whitenData(double[] specMean, double[] specData) Whiten spectral data
-
Method Details
-
addBackground
void addBackground(double[] specData) Add data to background data store.- Parameters:
specData- abs spec data only with bins in range of interest
-
getBackground
double[] getBackground()Get the current background- Returns:
- the mean, median, or whatever, background
-
whitenData
double[] whitenData(double[] specMean, double[] specData) Whiten spectral data- 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.
-