public class TwoFibreACGFitter extends ConjGradMinimizer
Constructor and Description |
---|
TwoFibreACGFitter(Vector3D[] vecs) |
Modifier and Type | Method and Description |
---|---|
double[] |
fitEstimatedParams(double[] a,
double[] b,
double ftol)
Runs the minimization and returns the answer.
|
double[] |
fitEstimatedParams(Vector3D dt1E1Vec,
Vector3D dt2E1Vec,
double ftol)
Runs the minimization and returns the answer.
|
static double[] |
getCholParams(double[] a)
Returns the elements of the Cholesky decomposition U of the
matrices A and B.
|
static ACG_Distribution[] |
getDistributions(double[] params,
java.util.Random r)
Converts output of
fitEstimatedParams . |
minimise, SIGN
public TwoFibreACGFitter(Vector3D[] vecs)
public static double[] getCholParams(double[] a)
public double[] fitEstimatedParams(Vector3D dt1E1Vec, Vector3D dt2E1Vec, double ftol)
dt1E1Vec
- an estimate of the first principal directiondt2E1Vec
- an estimate of the second principal directionpublic double[] fitEstimatedParams(double[] a, double[] b, double ftol) throws ConjGradMinimizerException
a
- the elements of matrix a: {axx, axy, axz, ayy, ayz, axx}b
- the elements of matrix b: {bxx, bxy, bxz, byy, byz, bxx}ConjGradMinimizerException
public static ACG_Distribution[] getDistributions(double[] params, java.util.Random r)
fitEstimatedParams
.