public class FitEllipse2D extends Object
A*x**2 + B*x*y + C*y**2 + D*x + E*y + F = 0
It can also compute the ellipse characteristics (center, theta, major, minor) from its algebraic equation.
| Constructor and Description |
|---|
FitEllipse2D(double[] x,
double[] y)
Creates a new instance of Ellipse, defined by a set of points
|
FitEllipse2D(P1D p)
Creates a new instance of Ellipse, defined by P1D
|
| Modifier and Type | Method and Description |
|---|---|
void |
doc()
Show online documentation.
|
double |
getAngle()
Report the angle between the major axis and the abscissae axis
|
Point2D.Double |
getCenter()
Report the center of the ellipse, using the same coordinate system as the
defining data points
|
double |
getCenterX()
Report the center of the ellipse in X
|
double |
getCenterY()
Report the center of the ellipse in Y
|
double[] |
getCoefficients()
Report the coefficients of the ellipse, as defined by the algebraic
equation
|
double |
getDistance()
Report the mean algebraic distance between the data points and the
ellipse
|
Ellipse |
getEllipse()
Return fitted ellipse.
|
math.geom2d.conic.Ellipse2D |
getEllipse2D()
Return fitted ellipse.
|
Double |
getMajor()
Report the 1/2 length of the major axis
|
Double |
getMinor()
Report the 1/2 length of the minor axis
|
static void |
main(String[] args) |
public FitEllipse2D(double[] x,
double[] y)
x - array of abscissaey - array of ordinatespublic FitEllipse2D(P1D p)
P1D - inputpublic double getAngle()
public Point2D.Double getCenter()
public double getCenterX()
public double getCenterY()
public math.geom2d.conic.Ellipse2D getEllipse2D()
public Ellipse getEllipse()
public double[] getCoefficients()
public double getDistance()
public Double getMajor()
public Double getMinor()
public static void main(String[] args)
public void doc()
DataMelt-1.1. http://jwork.org/dmelt/ ©