public class ThreeTensorFitter extends TensorModelFitter
ModelIndex
Constructor and Description |
---|
ThreeTensorFitter()
Default constructor does nothing.
|
ThreeTensorFitter(double[][] indepVals,
double[] depVals,
double[] bValues,
int nob0s)
The constructor requires a list of independent values (indepVals) and
associated dependent values (depVals) - these are the data.
|
Modifier and Type | Method and Description |
---|---|
DT |
getDT1()
Returns the first component diffusion tensor.
|
DT |
getDT2()
Returns the second component diffusion tensor.
|
DT |
getDT3()
Returns the third component diffusion tensor.
|
static ThreeTensorFitter |
getIndexedThreeTensorFitter(double[][] indepVals,
double[] depVals,
double[] bValues,
int nob0s,
ModelIndex index)
Returns a ThreeTensorFitter with type specified by the index and
initialized with the passed parameters.
|
double |
getMix1()
Returns the mixing parameter for the first component.
|
double |
getMix2()
Returns the mixing parameter for the second component.
|
void |
setStartFromSingleDT(DT singleDT)
Choose the starting point from a single diffusion tensor.
|
fAndBetaToDT, fsAndBetasFromSingleDT, fsAndBetasThreeFromSingleDT, invX2P1
getG, newDepVals
getChiSq, getRelativeResidual, getResidual, getResiduals, setSig
getCONVERGETHRESH, getFObjVal, getParameters, minimise, setConvergence, setCONVERGETHRESH, setInitParams, setMAXITER
public ThreeTensorFitter()
public ThreeTensorFitter(double[][] indepVals, double[] depVals, double[] bValues, int nob0s) throws MarquardtMinimiserException
indepVals
- The matrix of gradient directions g without b=0 entries.depVals
- The normalized measurements.bValues
- The array of diffusion times.nob0s
- The number of b=0 measurements.MarquardtMinimiserException
public void setStartFromSingleDT(DT singleDT)
public DT getDT1()
public DT getDT2()
public DT getDT3()
public double getMix1()
public double getMix2()
public static ThreeTensorFitter getIndexedThreeTensorFitter(double[][] indepVals, double[] depVals, double[] bValues, int nob0s, ModelIndex index) throws MarquardtMinimiserException
indepVals
- The matrix of gradient directions g without the zero entries.depVals
- The normalized measurements.bValues
- The b-values.nob0s
- The number of b=0 measurements.index
- The index of the required model fitter.MarquardtMinimiserException