I
- The type of the transient data.public class FitParams<I extends RealType<I>> extends Object
xxMap
are 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.Modifier and Type | Field and Description |
---|---|
float |
chisq_delta
Stopping condition 2: stop if change in chi-squared is less than
chisq_target (1E-4 by default) |
int |
chisq_percent
Confidence interval when calculating the error axes (95% by default)
|
float |
chisq_target
Stopping condition 1: stop if reduced chi-squared is less than
chisq_target (1 by default) |
boolean |
dropBad
Whether to declare
FitResults.retCode as
FitResults.RET_BAD_FIT_CHISQ_OUT_OF_RANGE or
FitResults.RET_BAD_FIT_DIVERGED if FitResults.chisq is larger
than 1e5 or less than 0. |
int |
fitEnd
The end of the decay interval
|
FitFunc |
fitFunc
The fitting model to use (Z + A_1e^(-t/tau_1) + A_2e^(-t/tau_2) + ...
|
int |
fitStart
The start of the decay interval
|
boolean |
getChisqMap
Whether to generate an image representation for chi-squred (
false by
default) |
boolean |
getFittedMap
Whether to generate an image representation for fitted transients
(
false by default) |
boolean |
getParamMap
Whether to generate an image representation for fitted parameters
(
true by default) |
boolean |
getResidualsMap
Whether to generate an image representation for residuals (
false by
default) |
boolean |
getReturnCodeMap
Whether to generate an image representation for the return codes
(
false by default) |
float[] |
instr
The array of instrument response (optional)
|
float |
iThresh
Intensity threshold value (overrides
iThreshPercent ) |
float |
iThreshPercent
Intensity threshold percentage
|
int |
ltAxis
The index of lifetime axis
|
boolean |
multithread
Enable multithread fitting (
true by default) |
int |
nComp
The number of exponential components of the fit (1 by default).
|
NoiseType |
noise
The assumed noise model of the fit (Poisson by default) @see NoiseType
|
float[] |
param
The estimated parameters of the fit (global setting)
|
boolean[] |
paramFree
The indicators of which of the parameters can be changed
|
RandomAccessibleInterval<FloatType> |
paramMap
The image representation of the estimated parameters the fit (per-pixel
setting, overides
param ) |
RestrainType |
restrain
The fit restraint (
RestrainType.ECF_RESTRAIN_DEFAULT by default) |
float[] |
restraintMax
The fit restraints (min or max) for each parameter.
|
float[] |
restraintMin
The fit restraints (min or max) for each parameter.
|
RealMask |
roiMask
The ROI mask (test() returns true on interested regions)
|
float[] |
sig
The standard deviation (sigma) of the data, used for calculating chi-squared
if
noise is NoiseType.NOISE_CONST or
NoiseType.NOISE_GIVEN . |
float[] |
trans
The transient data to fit
|
RandomAccessibleInterval<I> |
transMap
The image representation of the dataset
|
static int |
UNINIT
Fields with this value are uninitialized
|
float |
xInc
The time increment between two consecutive data points
|
Constructor and Description |
---|
FitParams() |
Modifier and Type | Method and Description |
---|---|
FitParams<I> |
copy()
Create a new instance of
FitParams with shallow copy (maps are not
duplicated). |
static <I extends RealType<I>> |
fromJSON(String jsonString)
Creates a FitParams from serialized JSON string.
|
String |
toJSON()
Serialize this FitParams into a JSON string.
|
String |
toString() |
@Expose public static final int UNINIT
@Expose public float xInc
public float[] trans
@Expose public int ltAxis
public RandomAccessibleInterval<I extends RealType<I>> transMap
public RealMask roiMask
@Expose public int fitStart
@Expose public int fitEnd
@Expose public float[] instr
@Expose public NoiseType noise
@Expose public float[] sig
noise
is NoiseType.NOISE_CONST
or
NoiseType.NOISE_GIVEN
.@Expose public int nComp
@Expose public float[] param
public RandomAccessibleInterval<FloatType> paramMap
param
)@Expose public boolean[] paramFree
@Expose public RestrainType restrain
RestrainType.ECF_RESTRAIN_DEFAULT
by default)@Expose public float[] restraintMin
i
will be restrained during the fit in the range
(restraintMin[i], restraintMax[i])
. If any of the two bounds are
not present (due to the array being null
or [i] == NaN
),
then -/+Inf
is used instead and that parameter will not be
bounded from below/above. The bounds only take effect if
restrain
is set to RestrainType.ECF_RESTRAIN_USER
.@Expose public float[] restraintMax
i
will be restrained during the fit in the range
(restraintMin[i], restraintMax[i])
. If any of the two bounds are
not present (due to the array being null
or [i] == NaN
),
then -/+Inf
is used instead and that parameter will not be
bounded from below/above. The bounds only take effect if
restrain
is set to RestrainType.ECF_RESTRAIN_USER
.@Expose public FitFunc fitFunc
@Expose public float chisq_target
chisq_target
(1 by default)@Expose public float chisq_delta
chisq_target
(1E-4 by default)@Expose public int chisq_percent
@Expose public float iThresh
iThreshPercent
)@Expose public float iThreshPercent
@Expose public boolean multithread
true
by default)@Expose public boolean dropBad
FitResults.retCode
as
FitResults.RET_BAD_FIT_CHISQ_OUT_OF_RANGE
or
FitResults.RET_BAD_FIT_DIVERGED
if FitResults.chisq
is larger
than 1e5 or less than 0.@Expose public boolean getReturnCodeMap
false
by default)@Expose public boolean getParamMap
true
by default)@Expose public boolean getFittedMap
false
by default)@Expose public boolean getResidualsMap
false
by
default)@Expose public boolean getChisqMap
false
by
default)public FitParams<I> copy()
FitParams
with shallow copy (maps are not
duplicated).public String toJSON()
public static <I extends RealType<I>> FitParams<I> fromJSON(String jsonString)
I
- data typejsonString
- the JSON string produced by toJSON()
Copyright © 2015–2022 FLIMLib. All rights reserved.