Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 868 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 868 Bytes

Counter

A class useful as a starting point for bag-of-words, TF-IDF, etc. Counter is an informal porting of the Python's collections.Counter class

calculateDotProduct

PHP function that calculates the dot product of two or more vectors. The dot product is the result of multiplying the individual numerical values in two or more vectors.

calculateCosineSimilarity

PHP function that calculates the cosine similarity of two vectors.

JaroWinkler

Porting of a couple of functions calculating the Jaro and JaroWinkler similarity