Module org.scijava.ops.flim
Package org.scijava.ops.flim.impl
Class AbstractFitWorker<I extends RealType<I>>
- java.lang.Object
-
- org.scijava.ops.flim.impl.AbstractFitWorker<I>
-
- All Implemented Interfaces:
FitWorker<I>
- Direct Known Subclasses:
AbstractSingleFitWorker,GlobalFit.GlobalFitWorker
public abstract class AbstractFitWorker<I extends RealType<I>> extends Object implements FitWorker<I>
AbstractFitWorker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.scijava.ops.flim.FitWorker
FitWorker.FitEventHandler<I extends RealType<I>>
-
-
Field Summary
Fields Modifier and Type Field Description protected intadjFitEndThe adjustedFitParams.fitStartandFitParams.fitEndtaking into account leading instr prefix (see below)protected intadjFitStartThe adjustedFitParams.fitStartandFitParams.fitEndtaking into account leading instr prefix (see below)protected intnDataShould be self-explanatoryprotected intnDataTotalThe number of data copied (including instr prefix/suffix and the part to fit, see below)protected intnParamShould be self-explanatoryprotected FitParams<I>paramsThe fit parameters for this workerprotected floatrawChisq_targetThe raw chisq target (params.chisq is reduced by DOF)protected FitResultsresultsThe fit results for this worker
-
Constructor Summary
Constructors Constructor Description AbstractFitWorker(FitParams<I> params, FitResults results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnDataOut()How many bins will be fitted?intnParamOut()How many parameters should there be inresults.param? E.g.voidpopulate()The settings passed into the fit worker is mutable.
-
-
-
Field Detail
-
results
protected final FitResults results
The fit results for this worker
-
nData
protected final int nData
Should be self-explanatory
-
nParam
protected final int nParam
Should be self-explanatory
-
adjFitStart
protected int adjFitStart
The adjustedFitParams.fitStartandFitParams.fitEndtaking into account leading instr prefix (see below)
-
adjFitEnd
protected int adjFitEnd
The adjustedFitParams.fitStartandFitParams.fitEndtaking into account leading instr prefix (see below)
-
nDataTotal
protected int nDataTotal
The number of data copied (including instr prefix/suffix and the part to fit, see below)
-
rawChisq_target
protected float rawChisq_target
The raw chisq target (params.chisq is reduced by DOF)
-
-
Constructor Detail
-
AbstractFitWorker
public AbstractFitWorker(FitParams<I> params, FitResults results)
-
-
Method Detail
-
populate
public void populate()
The settings passed into the fit worker is mutable. This method refreshes the fit worker by updating cached information and probably re-allocating buffers.
-
nParamOut
public int nParamOut()
Description copied from interface:FitWorkerHow many parameters should there be inresults.param? E.g. 3 for one-componentLMAFit.LMAFitWorkerand 5 forPhasorFit.PhasorFitWorker.
-
-