public class DT
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
DT(double[] dtComps)
Constructor from an array containing the six components.
|
DT(double Dxx,
double Dxy,
double Dxz,
double Dyy,
double Dyz,
double Dzz)
Constructor requires the six components.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
double |
contractBy(double[] q)
Contracts the diffusion tensor by a vector.
|
double |
determinant()
Computes the determinant.
|
double[][] |
eigenSystem()
Eigensystem computed using the
Jama.EigenvalueDecomposition class. |
double[] |
eigenValues()
Returns an array containing the three eigenvalues of the diffusion tensor.
|
double |
fa()
Compute the fractional anisotropy of the diffusion tensor.
|
double[] |
getComponents()
Returns an array containing the components of the diffusion tensor.
|
double[] |
getPD()
Returns the principal direction.
|
DT |
inverse()
Computes the inverse diffusion tensor.
|
DT |
iTransform(RealMatrix trans)
Applies a similarity transform to the diffusion tensor using the linear
transformation matrix supplied.
|
double[] |
multiply(double[] q)
Multiplies the vector by the diffusion tensor.
|
DT |
ppd(RealMatrix jac)
Reorients the tensor using the PPD algorithm.
|
DT |
scale(double scalar)
Scales a diffusion tensor.
|
double[][] |
sortedEigenSystem()
Returns a sorted eigensystem, with the largest eigenvalue and
corresponding eigenvector in column 0.
|
RealMatrix |
toMatrix() |
java.lang.String |
toString()
Returns a string containing the diffusion tensor matrix.
|
double |
trace()
Computes the trace of the diffusion tensor.
|
DT |
transform(RealMatrix trans)
Applies a similarity transform to the diffusion tensor using the linear
transformation matrix supplied.
|
public DT(double Dxx, double Dxy, double Dxz, double Dyy, double Dyz, double Dzz)
Dxx
- The xx component of the diffusion tensor.Dxy
- The xy component of the diffusion tensor.Dxz
- The xz component of the diffusion tensor.Dyy
- The yy component of the diffusion tensor.Dyz
- The yz component of the diffusion tensor.Dzz
- The zz component of the diffusion tensor.public DT(double[] dtComps)
dtComps
- {Dxx, Dxy, Dxz, Dyy, Dyz, Dzz}public double contractBy(double[] q)
q
- The vector to contract by.public RealMatrix toMatrix()
public double[] multiply(double[] q)
q
- The vector to multiply.public java.lang.Object clone()
clone
in class java.lang.Object
public double determinant()
public double trace()
public double fa()
public DT iTransform(RealMatrix trans)
trans
- A 3x3 linear transformation matrix.public DT transform(RealMatrix trans)
trans
- A 3x3 linear transformation matrix.public DT inverse()
public DT scale(double scalar)
scalar
- The scaling factor.public double[] getComponents()
public double[][] eigenSystem()
Jama.EigenvalueDecomposition
class.public double[][] sortedEigenSystem()
public DT ppd(RealMatrix jac)
jac
- The jacobian of the transformation.public double[] getPD()
public double[] eigenValues()
public java.lang.String toString()
toString
in class java.lang.Object