public class Covariance3By3SizeAndOrientation extends Object
Constructor and Description |
---|
Covariance3By3SizeAndOrientation(Cartesian sigmas,
UnitQuaternion rotation)
Initializes a new
Covariance3By3SizeAndOrientation object from the sigmas and a rotation. |
Covariance3By3SizeAndOrientation(Matrix3By3Symmetric matrix)
Initializes a new
Covariance3By3SizeAndOrientation object from a symmetrical matrix. |
Covariance3By3SizeAndOrientation(Matrix6By6 matrix)
Initializes a new
Covariance3By3SizeAndOrientation object a Matrix6By6
that contains position and velocity covariance information. |
Covariance3By3SizeAndOrientation(Matrix6By6Symmetric matrix)
Initializes a new
Covariance3By3SizeAndOrientation object from a Matrix6By6Symmetric
that contains position and velocity covariance information. |
Modifier and Type | Method and Description |
---|---|
static DateMotionCollection2<Covariance3By3SizeAndOrientation,Covariance3By3Derivative> |
constructDateMotionCollectionFromMatrix3By3Collection(DateMotionCollection1<Matrix3By3> covarianceMatrices)
|
static DateMotionCollection2<Covariance3By3SizeAndOrientation,Covariance3By3Derivative> |
constructDateMotionCollectionFromMatrixCollection(DateMotionCollection1<Matrix> covarianceMatrices)
|
boolean |
equals(Covariance3By3SizeAndOrientation other)
Indicates whether another instance of this type is exactly equal to this instance.
|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
UnitQuaternion |
getRotation()
Gets the
UnitQuaternion describing the rotation from the axes of the Covariance Ellipsoid to a reference axes. |
Cartesian |
getSigmas()
Gets the
Cartesian with the sigma values of the transformed Covariance Matrix. |
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
Matrix3By3 |
toMatrix3By3()
Gets the covariance matrix that corresponds to the sigma and orientation information.
|
Matrix3By3Symmetric |
toMatrix3By3Symmetric()
Gets the covariance matrix that corresponds to the sigma and orientation information.
|
String |
toString()
Returns the string representation of the value of this instance.
|
public Covariance3By3SizeAndOrientation(@Nonnull Matrix3By3Symmetric matrix)
Covariance3By3SizeAndOrientation
object from a symmetrical matrix.matrix
- The Matrix3By3Symmetric
of the covariance elements.public Covariance3By3SizeAndOrientation(@Nonnull Matrix6By6 matrix)
Covariance3By3SizeAndOrientation
object a Matrix6By6
that contains position and velocity covariance information. Only the position information (the upper left 3-by-3 portion)
is used. The velocity related information is ignored.matrix
- The position and velocity covariance matrix.ArgumentNullException
- Thrown when matrix
is null
.public Covariance3By3SizeAndOrientation(@Nonnull Matrix6By6Symmetric matrix)
Covariance3By3SizeAndOrientation
object from a Matrix6By6Symmetric
that contains position and velocity covariance information. Only the position information (the upper left 3-by-3 triangular portion)
is used. The velocity related information is ignored.matrix
- The position and velocity covariance matrix.ArgumentNullException
- Thrown when matrix
is null
.public Covariance3By3SizeAndOrientation(@Nonnull Cartesian sigmas, @Nonnull UnitQuaternion rotation)
Covariance3By3SizeAndOrientation
object from the sigmas and a rotation.sigmas
- The sigmas.rotation
- The rotation from the frame where the covariances
(not the variances) are zero to the original frame.@Nonnull public final Matrix3By3 toMatrix3By3()
Matrix3By3
.@Nonnull public final Matrix3By3Symmetric toMatrix3By3Symmetric()
Matrix3By3Symmetric
.public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to this instance.true
if obj
is an instance of this type and represents the same value as this instance; otherwise false
.Object.hashCode()
,
HashMap
public final boolean equals(Covariance3By3SizeAndOrientation other)
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public String toString()
@Nonnull public static DateMotionCollection2<Covariance3By3SizeAndOrientation,Covariance3By3Derivative> constructDateMotionCollectionFromMatrix3By3Collection(@Nonnull DateMotionCollection1<Matrix3By3> covarianceMatrices)
covarianceMatrices
- The covariance matrices to convert.DateMotionCollection1
.ArgumentNullException
- Thrown when covarianceMatrices
is null
.@Nonnull public static DateMotionCollection2<Covariance3By3SizeAndOrientation,Covariance3By3Derivative> constructDateMotionCollectionFromMatrixCollection(@Nonnull DateMotionCollection1<Matrix> covarianceMatrices)
Converts a DateMotionCollection1
of Matrix
into a DateMotionCollection1
.
Only the first three rows and columns of the matrices are examined, larger matrices (such as a 6x6 matrix including velocity covariance) can be fed in and the other indices will be ignored.
covarianceMatrices
- The covariance matrices to convert.DateMotionCollection1
.ArgumentNullException
- Thrown when covarianceMatrices
is null
.@Nonnull public final UnitQuaternion getRotation()
UnitQuaternion
describing the rotation from the axes of the Covariance Ellipsoid to a reference axes.@Nonnull public final Cartesian getSigmas()
Cartesian
with the sigma values of the transformed Covariance Matrix. These are equal to
the square root of the standard deviation of the covariances, and are the semi-axes lengths of the covariance
ellipsoid at one standard deviation of uncertainty.
To calculate an appropriate multiplicative factor to apply to this value to attain different desired levels of
uncertainty use GaussianStatistics.multiDimensionalStandardDeviationFactor(int, double)
with a dimension of three.