public class ModelFit extends Executable
Constructor and Description |
---|
ModelFit(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
void |
execute(OutputManager om)
abstract method execution for commands
|
static Fitter |
getFitter(FitModel fm,
NoiseModel nm,
FitAlgorithm fa)
assembles the combination of tissue model, noise model and fitting
algorithm into a fitter object that fits the specified model to the data
using the specified algorithm and noise.
|
static DiffusionInversion |
getIndexedInversion(ModelIndex[] indices,
DW_Scheme imPars)
Creates and returns the indexed diffusion inversion.
|
void |
initDefaultVals()
initialise the default values of class-level
fields, as they would be at declaration.
|
void |
initOptions(java.lang.String[] args)
default commandline parsing and initialisation
|
void |
initVariables()
abstract initialisation method for commands
|
static boolean |
isBG(double backgroundB0)
Check whether the next voxel is background
|
public void initDefaultVals()
Executable
initDefaultVals
in class Executable
public void initOptions(java.lang.String[] args)
Executable
initOptions
in class Executable
public void initVariables()
Executable
initVariables
in class Executable
public void execute(OutputManager om)
Executable
execute
in class Executable
public static final Fitter getFitter(FitModel fm, NoiseModel nm, FitAlgorithm fa)
fm
- model to fitnm
- noise model to adoptfa
- fitting algorithm to usepublic static DiffusionInversion getIndexedInversion(ModelIndex[] indices, DW_Scheme imPars)
indices
- The indices for the inversion(s). Either {index} or {two
tensor index, DT index}, or {three tensor index, DT index}.public static boolean isBG(double backgroundB0)