Class HistoFitPrep.FitWindowData

java.lang.Object
edu.cnu.mdi.splot.pdata.FitVectors
edu.cnu.mdi.splot.pdata.HistoFitPrep.FitWindowData
Enclosing class:
HistoFitPrep

public static final class HistoFitPrep.FitWindowData extends FitVectors
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 Details

    • peakBin

      public final int peakBin
      The (0-based) peak bin that was selected. -1 if empty.
    • bin0

      public final int bin0
      Inclusive start bin of the window that was used.
    • bin1

      public final int bin1
      Inclusive end bin of the window that was used.
    • halfWindowBinsUsed

      public final int halfWindowBinsUsed
      Half-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 a FitWindowData.
      Parameters:
      x - bin centers
      y - bin counts
      weights - Poisson weights, or null
      peakBin - selected peak bin (0-based; -1 if none)
      bin0 - inclusive start bin
      bin1 - inclusive end bin
      halfWindowBinsUsed - half-window actually used