Skip to contents

convert n-dimensional real world coordinates to 1D indices

Usage

coord_to_index(x, coords)

# S4 method for NeuroSpace,matrix
coord_to_index(x, coords)

# S4 method for NeuroSpace,numeric
coord_to_index(x, coords)

# S4 method for NeuroVol,matrix
coord_to_index(x, coords)

Arguments

x

the object

coords

a matrix of real world coordinates

Value

a vector of indices