Centroid of a set of N-dimensional points: Difference between revisions
Centroid of a set of N-dimensional points (view source)
Revision as of 23:44, 15 July 2023
, 10 months ago→{{header|Julia}}: rename
(julia example) |
m (→{{header|Julia}}: rename) |
||
Line 40:
arr[i] += x
end
return Point{T, N}
end
Line 63:
println("$t => $(centroid(vvec))")
end
xyz = [p[1] for p in
cpoint = centroid(
for i in eachindex(cpoint)
push!(xyz[i], cpoint[i])
|