neurom.morphmath.interval_lengths

neurom.morphmath.interval_lengths(points, prepend_zero=False)[source]

Returns the list of distances between consecutive points.

Parameters:
  • points – a list of np.array of 3D points
  • prepend_zero (bool) – if True, the returned array will start with a zero