Residuals.hyperbola {conicfit}R Documentation

Projecting a given set of points onto an hyperbola

Description

Residuals.hyperbola projects a given set of points onto an hyperbola and computing the distances from the points to the hyperbola

Usage

Residuals.hyperbola(XY,ParG)

Arguments

XY

array of sample data

ParG

vector 5x1 of the hyperbola parameters (Center(1:2), Axes(1:2), Angle)

Value

list(RSS, XYproj)

list with the Residual Sum of Squares and the array of coordinates of projections

Author(s)

Jose Gama

Source

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

N. Chernov, Q. Huang, and H. Ma, 2014 Fitting quadratic curves to data points British Journal of Mathematics & Computer Science, 4, 33-60.

References

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

N. Chernov, Q. Huang, and H. Ma, 2014 Fitting quadratic curves to data points British Journal of Mathematics & Computer Science, 4, 33-60.

Examples

XY <- matrix(c(1,7,2,6,5,8,7,7,9,5,3,7,6,2,8,4),8,2,byrow=TRUE)
ParG <- matrix(c(0,0,2,1,0),ncol=1)
Residuals.hyperbola(XY,ParG)

[Package conicfit version 1.0.4 Index]