Skip to contents

return the centroid of an object

Calculate the centroid of a NeuroSpace object

Usage

centroid(x, ...)

# S4 method for class 'NeuroSpace'
centroid(x)

# S4 method for class 'ROICoords'
centroid(x)

Arguments

x

The NeuroSpace object

...

extra args

Value

A numeric vector giving the centroid of x.

Examples


bspace <- NeuroSpace(c(10,10,10), c(2,2,2))
centroid(bspace)
#> [1] 10 10 10