Note: There is a newer version (1.2.2) of this package available. Click here to view docs for the latest version.
Module math.vector
ballerina/math.vector Ballerina library
1.2.1
Overview
This package provides functions for doing vector operations including calculating the L1 and L2 norm, dot product, cosine similarity, Euclidean distance, and Manhattan distance.
Key Features
- L1 and L2 norm calculation
- Dot product calculation
- Cosine similarity calculation
- Euclidean distance calculation
- Manhattan distance calculation