Jump to content

Centroid of a set of N-dimensional points: Difference between revisions

m
(Added Wren)
m (→‎{{header|Julia}}: err handling)
Line 44:
 
function centroid(arr)
isempty(arr) && return Point{Float64, 0}(arr)
n = length(arr[begin])
t = typeof(arr[begin][begin])
4,105

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.