circleErrors: Get mean squared error between coordinates and a circle

View source: R/localization.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/handlocs documentation built on Feb. 18, 2025, 10:53 p.m.