public class EvenSphHarmFitter
extends java.lang.Object
Constructor and Description |
---|
EvenSphHarmFitter()
Default constructor required for inheritance.
|
EvenSphHarmFitter(DW_Scheme imParams,
int order)
The constructor computes the inversion matrix from the imaging parameters
for the sequence used in the data acquisition.
|
Modifier and Type | Method and Description |
---|---|
double[] |
fit(double[] data)
Fits the spherical harmonic series using the inverse matrix.
|
double[] |
getF_TestProbabilities(double[] params,
double[] data)
Computes the set of probabilities of each pair of truncatated spherical
harmonic models being equivalent.
|
int |
getMaxOrder()
Returns the maximum spherical harmonic order that the fitter uses.
|
int |
itemsPerVoxel()
Specifies the number of elements in the output array.
|
int |
selectModel(double[] p,
double T1,
double T2,
double T3)
Performs a series of F-tests given the probabilities of equivalence of
each pair of spherical harmonic models.
|
static int |
selectModel(double[] p,
int order,
double T1,
double T2,
double T3)
Performs a series of F-tests given the probabilities of equivalence of
each pair of spherical harmonic models.
|
void |
setF_TestThresholds(double f1,
double f2,
double f3)
Sets the f-test thresholds.
|
int |
truncate(double[] params,
double[] data)
Determines the level of truncation of the series using a series of
f-tests between models from truncations at different orders.
|
public EvenSphHarmFitter()
public EvenSphHarmFitter(DW_Scheme imParams, int order)
imParams
- The imaging parameters of the acquisition sequence.order
- The maximum order of the spherical harmonic series to fit.public double[] fit(double[] data)
data
- The MRI data.public int itemsPerVoxel()
public void setF_TestThresholds(double f1, double f2, double f3)
f1
- The 0 versus higher order threshold.f2
- The 2 versus higher order threshold.f3
- The 4+ versus higher order threshold.public int getMaxOrder()
public int truncate(double[] params, double[] data)
params
- The fitted spherical harmonic parameters. The array is the
output of EvenSphHarmFitter.fit.data
- The measurements.public double[] getF_TestProbabilities(double[] params, double[] data)
params
- The fitted spherical harmonic parameters. The array is the
output of EvenSphHarmFitter.fit.data
- The measurements.public int selectModel(double[] p, double T1, double T2, double T3)
p
- The array of probabilities output by getF_TestProbabilities.T1
- The f-test threshold for current model 0.T2
- The f-test threshold for current model 2.T3
- The f-test threshold for current model 4 or greater.public static int selectModel(double[] p, int order, double T1, double T2, double T3)
p
- The array of probabilities output by getF_TestProbabilities.order
- The maximum order in the series used to construct the array p.T1
- The f-test threshold for current model 0.T2
- The f-test threshold for current model 2.T3
- The f-test threshold for current model 4 or greater.