circleErrors: Get mean squared error between coordinates and a circle

View source: R/circleFit.R

circleErrorsR Documentation

Get mean squared error between coordinates and a circle

Description

Get mean squared error between coordinates and a circle

Usage

circleErrors(freepar, X, Y, setpar = c())

Arguments

freepar

Vector with xc and yc parameters: x and y of the circle's middle. Optionally also includes r: the radius of the circle.

X

Vector of X coordinates

Y

Vector of Y coordinates

setpar

Vector that can have a fixed radius r, or can be empty.

Value

The mean squared error between the distances of X and Y from the position in par and the radius r.


thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.