object
cosine_similarity
Cosine similarity between two sparse Key-Value vectors, using scaled unit normalization to avoid squaring original magnitudes. Norms use each whole vector and the dot product uses common keys, treating missing entries as zeros. Results range from -1.0 to 1.0, or 0.0 to 1.0 for non-negative values. No common key or an all-zero vector gives 0.0.
Availability:
logtalk_load(recommender_protocols(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-10-02
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)