scale_forward_vector¶
- sofia_redux.toolkit.resampling.scale_forward_vector(coordinates, scale, offset)[source]¶
Applies the function
f(x) = (x - offset) / scale
to a coordinate array.This is a
numba
jit compiled function.- Parameters:
- coordinatesnumpy.ndarray (N, M)
An array where N is the number of dimensions, and M is the number of coordinates.
- scalenumpy.ndarray (N,)
The scaling factor to apply to each dimension.
- offsetnumpy.ndarray (N,)
The offset to apply to each dimension.
- Returns:
- numpy.ndarray of numpy.float64 (N, M)
The scaled
coordinates
array.