VectorSpaceMapExtensions extension

Extensions on Map<String, num>, used for working with vector-space models.

on

Methods

cosineSimilarity(Map<String, num> other) double

Available on VectorSpace, provided by the VectorSpaceMapExtensions extension

Returns the cosine similarity between this vector and other.