Skip to contents

convert n-dimensional real world coordinates to 1D indices

Usage

coord_to_index(x, coords)

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

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

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

Arguments

x

the object

coords

a matrix of real world coordinates

Value

a vector of indices