Learn R Programming

mathart (version 0.0.0.9000)

weiszfeld: Weiszfeld

Description

Finds the geometric median for a given set of points using Weiszfeld's algorithm. Refer to the Wikipedia article for details.

Usage

weiszfeld(points, p0)

Arguments

points

A data frame with columns for x and y coordinates

p0

A vector with the (x, y) co-ordinates of the initial point

Examples

Run this code
# NOT RUN {
weiszfeld()
# }

Run the code above in your browser using DataLab