kappa_sdk.interpolate_vectors#
- kappa_sdk.interpolate_vectors(vectors, reference_vector=None, data_enumerator=None, interpolation_method=None)[source]#
Interpolate a list of vectors based on a specified interpolation method, an optional reference vector, and an optional data enumerator.
This function interpolates a given list of vectors according to a chosen interpolation method. Optionally, a reference vector can be added to supply additional context or computation. If a reference vector is included, the interpolation will be performed over the total time range; otherwise, it will use the common time range. A data enumerator, if provided, is utilized for vector enumeration; otherwise, a new one is created using the settings derived from the given inputs. The interpolated vectors are then returned as a list.
- Parameters:
vectors (
List[Vector]
) – A list of vectors to be interpolated.reference_vector (
Optional[Vector]
, optional) – An optional reference vector added to the list of vectors for context or interpolation purpose. If provided, it influences how the time range is defined for interpolation.data_enumerator (
Optional[DataEnumerator]
, optional) – An optional custom enumerator used for vector enumeration. If not provided, a new enumerator instance will be created based on the interpolation settings.interpolation_method (
Optional[InterpolationMethodEnum]
, optional) – The method of interpolation applied to the vectors. Defaults to linear interpolation if unspecified.
- Returns:
List[Vector]
– A list of interpolated vectors created based on the inputs and the specified interpolation method.- Return type:
List[Vector]