public class SequenceStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NUMMFRSTATS
The number of statistics in MFR trials.
|
static int |
NUMSINGLEDTSTATS
The number of statistics in single DT trials.
|
static int |
NUMTHREETENSORSTATS
The number of statistics in three tensor trials.
|
static int |
NUMTWOTENSORSTATS
The number of statistics in two tensor trials.
|
Constructor and Description |
---|
SequenceStats() |
Modifier and Type | Method and Description |
---|---|
static double[] |
dirStatsWithRotations(double[][] props,
int col,
int functionIndex,
double dt2rotangle)
Computes the mean, standard deviation, maximum and minimum of the angle
between directions and the closest matching principal direction of the
test function.
|
static void |
main(java.lang.String[] args) |
static double[] |
mfrStats(double[][] rotStats,
int testFunc,
double dt2rotangle)
Computes the statistics for data from a multiple-fibre reconstruction and
outputs them.
|
static double[] |
singleDT_Stats(double[][] rotStats)
Computes the statistics for single DT data and outputs them.
|
static double[] |
threeTensorStats(double[][] rotStats)
Computes the statistics for three tensors and outputs them.
|
static double[] |
twoTensorStats(double[][] rotStats,
double dt2rotangle)
Computes the statistics for two tensors and outputs them.
|
public static final int NUMSINGLEDTSTATS
public static final int NUMTWOTENSORSTATS
public static final int NUMTHREETENSORSTATS
public static final int NUMMFRSTATS
public static void main(java.lang.String[] args)
public static double[] singleDT_Stats(double[][] rotStats)
rotStats
- The input statistics.public static double[] twoTensorStats(double[][] rotStats, double dt2rotangle)
rotStats
- The input statistics.dt2rotangle
- The rotation angle of the second componentpublic static double[] threeTensorStats(double[][] rotStats)
rotStats
- The input statistics.public static double[] mfrStats(double[][] rotStats, int testFunc, double dt2rotangle)
rotStats
- The input statistics.testFunc
- The test function used in the simulationdt2rotangle
- The rotation of the second component in test function 3public static double[] dirStatsWithRotations(double[][] props, int col, int functionIndex, double dt2rotangle)
props
- The array.col
- The column.functionIndex
- The test function used in the simulationdt2rotangle
- The rotation of the second component in test function 3