|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.talvi.puffinplot.data.Tensor
public class Tensor
A second-order symmetric tensor used to represent the anisotropy of magnetic susceptibility.
| Constructor Summary | |
|---|---|
Tensor(double k11,
double k22,
double k33,
double k12,
double k23,
double k13)
Creates a tensor with the specified components. |
|
Tensor(double k11,
double k22,
double k33,
double k12,
double k23,
double k13,
Matrix correct1,
Matrix correct2)
Creates a tensor with the specified components and transformed using the specified matrices. |
|
Tensor(java.util.List<Vec3> axes)
Creates a tensor with the specified principal axes. |
|
| Method Summary | |
|---|---|
static Tensor |
fromDirections(Vec3 k1,
Vec3 k2,
Vec3 k3)
Creates a tensor with the specified axes. |
Vec3 |
getAxis(int axis)
Returns one of the tensor's three principal axes as a vector. |
static java.util.List<java.lang.String> |
getEmptyFields()
Returns a list of empty strings equal in length to the number of parameters. |
static java.util.List<java.lang.String> |
getHeaders()
Returns the headers describing the parameters as a list of strings. |
java.util.List<java.lang.String> |
toStrings()
Returns the principal directions as a list of strings. |
java.lang.String |
toTensorComponentString()
Returns a string giving the components of the tensor, separated by spaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tensor(double k11,
double k22,
double k33,
double k12,
double k23,
double k13)
k11 - (1,1) componentk22 - (2,2) componentk33 - (3,3) componentk12 - (1,2) and (2,1) componentk23 - (2,3) and (3,2) componentk13 - (1,3) and (3,1) component
public Tensor(double k11,
double k22,
double k33,
double k12,
double k23,
double k13,
Matrix correct1,
Matrix correct2)
k11 - (1,1) componentk22 - (2,2) componentk33 - (3,3) componentk12 - (1,2) and (2,1) componentk23 - (2,3) and (3,2) componentk13 - (1,3) and (3,1) componentcorrect1 - first correction matrixcorrect2 - second correction matrixpublic Tensor(java.util.List<Vec3> axes)
axes - the principal axes of the tensor| Method Detail |
|---|
public java.lang.String toTensorComponentString()
public static Tensor fromDirections(Vec3 k1,
Vec3 k2,
Vec3 k3)
k1 - major axisk2 - intermediate axisk3 - minor axis
public Vec3 getAxis(int axis)
axis - 0 for major axis, 1 for intermediate, and 2 for minor
public java.util.List<java.lang.String> toStrings()
getHeaders().
public static java.util.List<java.lang.String> getEmptyFields()
public static java.util.List<java.lang.String> getHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||