Class Accuracy2D

java.lang.Object
com.irurueta.navigation.Accuracy<com.irurueta.geometry.Accuracy2D>
com.irurueta.navigation.Accuracy2D

public class Accuracy2D extends Accuracy<com.irurueta.geometry.Accuracy2D>
Contains methods to convert covariance matrices into ellipses representing accuracy with requested confidence.
  • Constructor Details

    • Accuracy2D

      public Accuracy2D()
      Constructor.
    • Accuracy2D

      public Accuracy2D(com.irurueta.algebra.Matrix covarianceMatrix) throws com.irurueta.algebra.NonSymmetricPositiveDefiniteMatrixException
      Constructor.
      Parameters:
      covarianceMatrix - covariance matrix to be set. Must be 2x2 and positive definite.
      Throws:
      IllegalArgumentException - if provided matrix is not square (it must also be positive definite to be properly converted to an ellipse).
      com.irurueta.algebra.NonSymmetricPositiveDefiniteMatrixException - if provided matrix is not symmetric and positive definite.
    • Accuracy2D

      public Accuracy2D(double confidence)
      Constructor.
      Parameters:
      confidence - confidence of provided accuracy of an estimated position.
      Throws:
      IllegalArgumentException - if provided value is not within 0 and 1.
    • Accuracy2D

      public Accuracy2D(com.irurueta.algebra.Matrix covarianceMatrix, double confidence) throws com.irurueta.algebra.NonSymmetricPositiveDefiniteMatrixException
      Constructor.
      Parameters:
      covarianceMatrix - covariance matrix to be set. Must be 2x2 and positive definite.
      confidence - confidence of provided accuracy of an estimated position.
      Throws:
      IllegalArgumentException - if provided matrix is not square (it must also be positive definite to be properly converted to an ellipse), or if provided confidence value is not within 0 and 1.
      com.irurueta.algebra.NonSymmetricPositiveDefiniteMatrixException - if provided matrix is not symmetric and positive definite.
    • Accuracy2D

      Accuracy2D(com.irurueta.geometry.Accuracy2D internalAccuracy)
      Constructor.
      Parameters:
      internalAccuracy - internal accuracy to be set.
  • Method Details

    • toEllipse

      public com.irurueta.geometry.Ellipse toEllipse() throws com.irurueta.geometry.InvalidRotationMatrixException
      Converts provided covariance matrix into a 2D ellipse taking into account current confidence and standard deviation factor.
      Returns:
      ellipse representing accuracy of covariance matrix with current confidence and standard deviation factor.
      Throws:
      NullPointerException - if covariance matrix has not been provided yet.
      com.irurueta.geometry.InvalidRotationMatrixException - if rotation cannot be properly determined.