Package georegression.fitting.curves
Class CovarianceToEllipse_F64
java.lang.Object
georegression.fitting.curves.CovarianceToEllipse_F64
Computes a containment ellipse given a covariance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getAngle()
double
double
boolean
setCovariance
(double a11, double a12, double a22) Specifies the covariance matrix.void
setNumStdev
(double numStdev)
-
Constructor Details
-
CovarianceToEllipse_F64
public CovarianceToEllipse_F64()
-
-
Method Details
-
setNumStdev
public void setNumStdev(double numStdev) -
setCovariance
public boolean setCovariance(double a11, double a12, double a22) Specifies the covariance matrix. Q = [a11 a12; a12 a22]- Parameters:
a11
- element in covariance matrix.a12
- element in covariance matrix.a22
- element in covariance matrix.- Returns:
- true if it was successful or false if something went wrong
-
getMajorVector
- Returns:
- Vector which defines the major axis
-
getMinorVector
- Returns:
- Vector which defines the minor axis
-
getAngle
public double getAngle()- Returns:
- Angle between the major axis and the x-axis
-
getMajorAxis
public double getMajorAxis()- Returns:
- Length of the major axis
-
getMinorAxis
public double getMinorAxis()- Returns:
- Length of the minor axis
-