invstats - Computes statistics of populations of diffusion tensors.
SYNOPSIS
invstats
-inversion <index> -voxels <num voxels>
DESCRIPTION
Reads in the output of modelfit and computes statistics of the distribution of principal
directions and shape properties in the results. Used mostly for simulations, performance
analysis and calibration.
For a single tensor inversion, the output is:
- number of trials over which statistics computed,
- fraction of successful trials,
- mean direction (x, y, z),
- mean dyadic eigenvalues (l1, l2, l3),
- mean trace,
- std trace,
- mean FA,
- std FA.
For two tensor inversions:
- number of trials over which statistics computed,
- fraction of successful trials,
- mean direction 1 (x, y, z),
- mean dyadic eigenvalues 1 (l1, l2, l3),
- mean trace 1,
- std trace 1,
- mean FA 1,
- std FA 1,
- mean direction 2 (x, y, z),
- mean dyadic eigenvalues 2 (l1, l2, l3),
- mean trace 2,
- std trace 2,
- mean FA 2,
- std FA 2,
- mean prop,
- std prop.
For three tensor inversions:
- number of trials over which statistics computed,
- fraction of successful trials,
- mean direction 1 (x, y, z),
- mean dyadic eigenvalues 1 (l1, l2, l3),
- mean trace 1,
- std trace 1,
- mean FA 1,
- std FA 1,
- mean direction 2 (x, y, z),
- mean dyadic eigenvalues 2 (l1, l2, l3),
- mean trace 2,
- std trace 2,
- mean FA 2,
- std FA 2,
- mean direction 3 (x, y, z),
- mean dyadic eigenvalues 3 (l1, l2, l3),
- mean trace 3,
- std trace 3,
- mean FA 3,
- std FA 3,
- mean prop1,
- std prop1,
- mean prop2,
- std prop2 .
The dyadic of a direction n is the 3x3 matrix n n^T. The mean dyadic is the average the
the dyadics for corresponding directions over all trials. The first eigenvalue kappa_1 of
the mean dyadic indicates the concentration of the population of directions; the closer
kappa_1 is to one the greater the concentration. Another common concentration statistic,
used for example in Alexander and Barker, NeuroImage 27 2005, is gamma = -log(1-kappa_1).
Note that the order in which the inversions output multiple fitted tensors is arbitrary,
so we need to cluster the directions into those which correspond. This program uses the
simple iterative algorithm described in Alexander and Barker, NeuroImage 27 2005 to
associate corresponding directions from each trial.
1.000000E00Fraction of successful trials (always 1 for single tensor)
9.999622E-01|
-5.471425E-03| The mean principal direction. Close to x, as expected
6.760559E-03| for this synthetic data.
9.977014E-01:
1.622163E-03: Three mean dyadic eigenvalues; kappa_1 = 0.977014
6.764810E-04:
2.091067E-09Mean Trace(D)
7.214781E-11Std Trace(D)
8.638374E-01Mean FA
2.936898E-02Std FA
The following is a simple investigation of how the concentration of principal directions
varies with noise level. Note how shredder pulls out the sixth number from each output,
which is the first eigenvalue of the mean dyadic.