centroids {neuroim2} | R Documentation |
Return a matrix of centroids of an object
Description
Return a matrix of centroids of an object
Usage
centroids(x, ...)
## S4 method for signature 'ClusteredNeuroVol'
centroids(x, type = c("center_of_mass", "medoid"))
Arguments
x |
an object with multiple centroids (e.g. a |
... |
extra args |
type |
the type of center of mass: one of "center_of_mass" or "medoid" |
Details
For 'type = "center_of_mass"', returns arithmetic mean coordinates; for '"medoid"', returns the most central point.
Value
A numeric matrix
where each row represents the coordinates of a centroid.
A matrix of coordinates where each row represents the centroid of a cluster.
[Package neuroim2 version 0.8.1 Index]