Module oozie::similarity [] [src]

Module with some basic similarities between vectors

Functions

cosine

Computes the cosine similarity between two sparse vectors. It returns 0.0 if one of the vectors has null norm.

jaccard

Computes the extended Jaccard similarity between two sparse vectors.

pearson

Computes the Pearson correlation index between two sparse vectors. It treats the vectors as discrete uniform random variables.