cosineSimilarity

vecxt.cosineSimilarity

Compute the cosine similarity between two vectors

Value parameters

v1

the first vector

v2

the second vector

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

inline def apply(v1: Array[Double], v2: Array[Double])(using inline boundsCheck: BoundsCheck): Double