Learn R Programming

conicfit (version 1.0.4)

AtoG: Conversion of algebraic parameters to geometric parameters

Description

AtoG converts algebraic parameters (A, B, C, D, E, F) to geometric parameters (Center(1:2), Axes(1:2), Angle).

Usage

AtoG(ParA)

Arguments

ParA
vector or array with geometric parameters (A, B, C, D, E, F)

Value

list(ParG, exitCode
list with algebraic parameters (Center(1:2), Axes(1:2), Angle) and exit code

Format

code is: -1 - degenerate cases 0 - imaginary ellipse 4 - imaginary parell lines 1 - ellipse 2 - hyperbola 3 - parabola

Source

Nikolai Chernov, 2014 Fitting ellipses, circles, and lines by least squares http://people.cas.uab.edu/~mosya/cl/ Nikolai Chernov, 2010 Circular and linear regression: Fitting circles and lines by least squares Chapman & Hall/CRC, Monographs on Statistics and Applied Probability, Volume 117

References

Nikolai Chernov, 2014 Fitting ellipses, circles, and lines by least squares http://people.cas.uab.edu/~mosya/cl/

Nikolai Chernov, 2010 Circular and linear regression: Fitting circles and lines by least squares Chapman & Hall/CRC, Monographs on Statistics and Applied Probability, Volume 117

Examples

Run this code
AtoG(c(0.0551,-0.0908,0.1588,0.0489,-0.9669,0.1620))

Run the code above in your browser using DataLab