object

pearson_similarity

Pearson correlation between two sparse Key-Value vectors, computed only over common keys using shifted, scaled centering and unit normalization. Results range from -1.0 to 1.0. Fewer than two common keys, or exactly constant values in either common-key subset, 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_calls
Implements:
Imports:
Uses:
Remarks:
(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)