normalise#

ctapipe.utils.linalg.normalise(vec)[source]#
Sets the length of the vector to 1

without changing its direction

Parameters:
vecnumpy array
Returns:
numpy array with the same direction but length of 1