Residuals.parabola: Projecting a given set of points onto an parabola

Description Usage Arguments Value Author(s) Source References Examples

Description

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

Usage

1

Arguments

XY

array of sample data

ParG

vector 4x1 of the parabola parameters (Vertex(1:2), p, 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

1
2
3
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.parabola(XY,ParG)

Example output

Loading required package: pracma
Loading required package: geigen
$RSS
[1] 79.1011

$XYproj
           [,1]     [,2]
[1,] -0.9446164 7.339967
[2,] -1.0877019 6.448033
[3,] -0.5623941 9.244795
[4,]  9.4160129 3.936344
[5,]  9.6809916 4.146550
[6,] -0.8758736 7.720868
[7,]  6.2308252 1.639623
[8,]  8.5522775 3.269133

conicfit documentation built on May 2, 2019, 3:11 a.m.