swarmauri.core.vector_stores.IAngleBetweenVectors module

class swarmauri.core.vector_stores.IAngleBetweenVectors.IAngleBetweenVectors[source]

Bases: ABC

Interface for calculating the angle between two vectors.

abstract angle_between(vector_a, vector_b)[source]

Method to calculate and return the angle in radians between two vectors.

Parameters: - vector_a (List[float]): The first vector as a list of floats. - vector_b (List[float]): The second vector as a list of floats.

Returns: - float: The angle between vector_a and vector_b in radians.

Note: Implementations should handle the vectors’ dimensionality and throw appropriate exceptions for incompatible vectors.

Return type:

float