Module org.scijava.ops.flim
Package org.scijava.ops.flim.impl
Class BayesFit.BayesFitWorker<I extends RealType<I>>
- java.lang.Object
-
- org.scijava.ops.flim.impl.AbstractFitWorker<I>
-
- org.scijava.ops.flim.impl.AbstractSingleFitWorker<I>
-
- org.scijava.ops.flim.impl.BayesFit.BayesFitWorker<I>
-
- All Implemented Interfaces:
FitWorker<I>
- Enclosing class:
- BayesFit
public static class BayesFit.BayesFitWorker<I extends RealType<I>> extends AbstractSingleFitWorker<I>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.scijava.ops.flim.FitWorker
FitWorker.FitEventHandler<I extends RealType<I>>
-
-
Field Summary
-
Fields inherited from class org.scijava.ops.flim.impl.AbstractSingleFitWorker
chisqBuffer, fittedBuffer, paramBuffer, residualBuffer, transBuffer
-
Fields inherited from class org.scijava.ops.flim.impl.AbstractFitWorker
adjFitEnd, adjFitStart, nData, nDataTotal, nParam, params, rawChisq_target, results
-
-
Constructor Summary
Constructors Constructor Description BayesFitWorker(FitParams<I> params, FitResults results, Function<FitParams<I>,FitResults> rldFitter, BiFunction<Img<FloatType>,Integer,FloatType> percentileOp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeforeFit()A routine called beforeAbstractSingleFitWorker.doFit().voiddoFit()Performs an Bayes fit.protected AbstractSingleFitWorker<I>duplicate(FitParams<I> params, FitResults rslts)Make a worker of the same kind but does not share any writable buffers (thread safe) if that buffer is null.protected voidonThreadInit()Called on the worker thread after worker duplication.protected booleanrunMultiThreaded()-
Methods inherited from class org.scijava.ops.flim.impl.AbstractSingleFitWorker
afterFit, fitBatch, fitSingle
-
Methods inherited from class org.scijava.ops.flim.impl.AbstractFitWorker
nDataOut, nParamOut, populate
-
-
-
-
Constructor Detail
-
BayesFitWorker
public BayesFitWorker(FitParams<I> params, FitResults results, Function<FitParams<I>,FitResults> rldFitter, BiFunction<Img<FloatType>,Integer,FloatType> percentileOp)
-
-
Method Detail
-
beforeFit
protected void beforeFit()
Description copied from class:AbstractSingleFitWorkerA routine called beforeAbstractSingleFitWorker.doFit(). Can be used to throw away the left-overs from the previous run.- Overrides:
beforeFitin classAbstractSingleFitWorker<I extends RealType<I>>
-
doFit
public void doFit()
Performs an Bayes fit.- Specified by:
doFitin classAbstractSingleFitWorker<I extends RealType<I>>
-
onThreadInit
protected void onThreadInit()
Description copied from class:AbstractSingleFitWorkerCalled on the worker thread after worker duplication. Can be used to initialize thread-local globals such as Bayesian search grid parameters.- Overrides:
onThreadInitin classAbstractSingleFitWorker<I extends RealType<I>>- See Also:
onThreadInit()
-
duplicate
protected AbstractSingleFitWorker<I> duplicate(FitParams<I> params, FitResults rslts)
Description copied from class:AbstractSingleFitWorkerMake a worker of the same kind but does not share any writable buffers (thread safe) if that buffer is null.- Specified by:
duplicatein classAbstractSingleFitWorker<I extends RealType<I>>- Parameters:
params- the parametersrslts- the results- Returns:
- a worker of the same kind.
-
runMultiThreaded
protected boolean runMultiThreaded()
- Overrides:
runMultiThreadedin classAbstractSingleFitWorker<I extends RealType<I>>
-
-