This function calculates the barycenter (weighted centroid) of a point cloud.
1 | barycenter(cloud, weights)
|
cloud |
An m-by-n matrix of coordinates for m points in n-dimensional space. |
weights |
An m-element vector of point masses (weights). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.