- java.lang.Object
-
- org.scijava.ops.flim.FitResults
-
public class FitResults extends Object
The collection of all results generated by a single fit of an image. Fields namedxxMapare image representations of the particular attribute. Other fields are not intended to be used by external programs and should be ignored when this object is processed with in the fitting ops.- Author:
- Dasong Gao
-
-
Field Summary
Fields Modifier and Type Field Description floatchisqThe reduced chi-squared of the fit.Img<FloatType>chisqMapThe image representation of reduced chi-squared of the fit over the the datasetfloat[]fittedThe fitted transients of the fitImg<FloatType>fittedMapThe image representation of fitted transients of the fit over the the datasetImg<FloatType>intensityMapThe image representation of the intensity distribution obtained by summing up photon counts.intltAxisThe index of lifetime and parameter axisfloat[]paramThe fitted parameters of the fitImg<FloatType>paramMapThe image representation of fitted parameters of the fit over the the datasetfloat[]residualsThe residuals (y - y_fitted) of the fitImg<FloatType>residualsMapThe image representation of residuals of the fit over the the datasetstatic intRET_BAD_FIT_CHISQ_OUT_OF_RANGEThe return code for a fit that succeeded but has chisq > 1e5static intRET_BAD_FIT_DIVERGEDThe return code for a fit that failed by flimlibstatic intRET_BAD_SETTINGThe return code for a fit that failed because of improper argumentsstatic intRET_INTENSITY_BELOW_THRESHThe return code for a fit that was not performed because the intensity is below thresholdstatic intRET_INTERNAL_ERRORThe return code for a fit that failed because of error in native code (e.g.static intRET_OKThe return code for a good fitstatic intRET_UNKNOWNThe return code for unknown fit statusintretCodeThe return code of the fitImg<IntType>retCodeMapThe image representation of return codes of the fit over the dataset
-
Constructor Summary
Constructors Constructor Description FitResults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FitResultscopy()Create a new instance ofFitResultswith shallow copy (maps are not duplicated).
-
-
-
Field Detail
-
RET_OK
public static final int RET_OK
The return code for a good fit- See Also:
- Constant Field Values
-
RET_BAD_FIT_DIVERGED
public static final int RET_BAD_FIT_DIVERGED
The return code for a fit that failed by flimlib- See Also:
- Constant Field Values
-
RET_BAD_FIT_CHISQ_OUT_OF_RANGE
public static final int RET_BAD_FIT_CHISQ_OUT_OF_RANGE
The return code for a fit that succeeded but has chisq > 1e5- See Also:
- Constant Field Values
-
RET_BAD_SETTING
public static final int RET_BAD_SETTING
The return code for a fit that failed because of improper arguments- See Also:
- Constant Field Values
-
RET_INTENSITY_BELOW_THRESH
public static final int RET_INTENSITY_BELOW_THRESH
The return code for a fit that was not performed because the intensity is below threshold- See Also:
- Constant Field Values
-
RET_INTERNAL_ERROR
public static final int RET_INTERNAL_ERROR
The return code for a fit that failed because of error in native code (e.g. malloc)- See Also:
- Constant Field Values
-
RET_UNKNOWN
public static final int RET_UNKNOWN
The return code for unknown fit status- See Also:
- Constant Field Values
-
ltAxis
public int ltAxis
The index of lifetime and parameter axis
-
retCode
public int retCode
The return code of the fit
-
retCodeMap
public Img<IntType> retCodeMap
The image representation of return codes of the fit over the dataset
-
intensityMap
public Img<FloatType> intensityMap
The image representation of the intensity distribution obtained by summing up photon counts.
-
param
public float[] param
The fitted parameters of the fit
-
paramMap
public Img<FloatType> paramMap
The image representation of fitted parameters of the fit over the the dataset
-
fitted
public float[] fitted
The fitted transients of the fit
-
fittedMap
public Img<FloatType> fittedMap
The image representation of fitted transients of the fit over the the dataset
-
residuals
public float[] residuals
The residuals (y - y_fitted) of the fit
-
residualsMap
public Img<FloatType> residualsMap
The image representation of residuals of the fit over the the dataset
-
chisq
public float chisq
The reduced chi-squared of the fit. For global analysis, this is the global chi-squared value.
-
-
Method Detail
-
copy
public FitResults copy()
Create a new instance ofFitResultswith shallow copy (maps are not duplicated).- Returns:
- A clone of the current instance.
-
-