fitConic: Fit Data to Any Conic Section

Fit data to an ellipse, hyperbola, or parabola. Bootstrapping is available when needed. The conic curve can be rotated through an arbitrary angle and the fit will still succeed. Helper functions are provided to convert generator coefficients from one style to another, generate test data sets, rotate conic section parameters, and so on. References include Nikolai Chernov (2014) "Fitting ellipses, circles, and lines by least squares" <>; A. W. Fitzgibbon, M. Pilu, R. B. Fisher (1999) "Direct Least Squares Fitting of Ellipses" IEEE Trans. PAMI, Vol. 21, pages 476-48; N. Chernov, Q. Huang, and H. Ma (2014) "Fitting quadratic curves to data points", British Journal of Mathematics & Computer Science, 4, 33-60; N. Chernov and H. Ma (2011) "Least squares fitting of quadratic curves and surfaces", Computer Vision, Editor S. R. Yoshida, Nova Science Publishers, pp. 285-302.

Version: 1.2.1
Imports: pracma
Published: 2023-08-28
DOI: 10.32614/CRAN.package.fitConic
Author: Carl Witthoft [aut, cre], Jose Gama [ctb], Nikolai Chernov [ctb]
Maintainer: Carl Witthoft <cellocgw at>
License: LGPL-3
NeedsCompilation: no
Materials: ChangeLog
CRAN checks: fitConic results


Reference manual: fitConic.pdf


Package source: fitConic_1.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): fitConic_1.2.1.tgz, r-oldrel (arm64): fitConic_1.2.1.tgz, r-release (x86_64): fitConic_1.2.1.tgz, r-oldrel (x86_64): fitConic_1.2.1.tgz
Old sources: fitConic archive

Reverse dependencies:

Reverse imports: PlaneGeometry


Please use the canonical form to link to this page.