An implementation of the cosine similarity. The result is the cosine of the angle formed between the two preference vectors.
Note that this similarity does not "center" its data, shifts the user's preference values so that each of their means is 0. For this behavior, use {@link PearsonCorrelationSimilarity}, which actually is mathematically equivalent for centered data.
|
|
|
|