public class InversionStats extends Executable
Constructor and Description |
---|
InversionStats(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
static RealMatrix |
dyadic(double[] dir)
Computes the dyadic of a direction.
|
void |
execute(OutputManager om)
abstract method execution for commands
|
void |
initDefaultVals()
initialise the default values of class-level
fields, as they would be at declaration.
|
void |
initOptions(java.lang.String[] args)
Runs the main program given the command line arguments.
|
void |
initVariables()
abstract initialisation method for commands
|
static double[] |
meanSTDMaxAndMin(double[][] props,
int col)
Computes the mean, standard deviation, maximum and minimum of a column of
a 2D array.
|
static double[] |
oneDirectionStats(double[][] props,
int col)
Computes the principal eigenvector (ex, ey, ez) and eigenvalues (l1, l2,
l3) of the mean dyadic of a list of vectors.
|
void |
orderComponentsByDirection(double[][] props,
int numComponents,
int propsPerComponent,
int firstDirIndex)
Reorders the array of inversion properties when it contains multiple
directions to maximize the similarity of the directions in each
component.
|
public void initDefaultVals()
Executable
initDefaultVals
in class Executable
public void initOptions(java.lang.String[] args)
initOptions
in class Executable
args
- The command line arguments.public void initVariables()
Executable
initVariables
in class Executable
public void execute(OutputManager om)
Executable
execute
in class Executable
public void orderComponentsByDirection(double[][] props, int numComponents, int propsPerComponent, int firstDirIndex)
props
- The array of properties.numComponents
- The number of directions in the props arraypropsPerComponent
- The number of values in the props array for each directionfirstDirIndex
- The index of props that is the start of the first directionpublic static double[] oneDirectionStats(double[][] props, int col)
props
- An array of properties from a number of trials.col
- The first column of the vector to compute the statistics of.public static RealMatrix dyadic(double[] dir)
dir
- The direction: {x, y, z}.public static double[] meanSTDMaxAndMin(double[][] props, int col)
props
- The array.col
- The column.