Package edu.cnu.mdi.splot.pdata
Class HistoFitPrep.FitWindowData
java.lang.Object
edu.cnu.mdi.splot.pdata.FitVectors
edu.cnu.mdi.splot.pdata.HistoFitPrep.FitWindowData
- Enclosing class:
HistoFitPrep
A
FitVectors that also records which peak bin and window were
actually used.
Returned by the guarded best-peak methods so callers can log or display the window that was chosen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intInclusive start bin of the window that was used.final intInclusive end bin of the window that was used.final intHalf-window size in bins that was actually applied (may be smaller than requested if the peak was near an edge).final intThe (0-based) peak bin that was selected.Fields inherited from class edu.cnu.mdi.splot.pdata.FitVectors
w, x, y -
Constructor Summary
ConstructorsConstructorDescriptionFitWindowData(double[] x, double[] y, double[] weights, int peakBin, int bin0, int bin1, int halfWindowBinsUsed) Creates aFitWindowData. -
Method Summary
Methods inherited from class edu.cnu.mdi.splot.pdata.FitVectors
hasAnyPositiveWeight, hasWeights, isUsable, length, testData
-
Field Details
-
peakBin
public final int peakBinThe (0-based) peak bin that was selected.-1if empty. -
bin0
public final int bin0Inclusive start bin of the window that was used. -
bin1
public final int bin1Inclusive end bin of the window that was used. -
halfWindowBinsUsed
public final int halfWindowBinsUsedHalf-window size in bins that was actually applied (may be smaller than requested if the peak was near an edge).
-
-
Constructor Details
-
FitWindowData
public FitWindowData(double[] x, double[] y, double[] weights, int peakBin, int bin0, int bin1, int halfWindowBinsUsed) Creates aFitWindowData.- Parameters:
x- bin centersy- bin countsweights- Poisson weights, ornullpeakBin- selected peak bin (0-based;-1if none)bin0- inclusive start binbin1- inclusive end binhalfWindowBinsUsed- half-window actually used
-