Skip to content

algenza/cosine-similarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosine-Similarity

Build Status

Installation

composer require algenza/cosine-similarity 

How to use?

use Algenza\Cosinesimilarity\Cosine;

$vectorA = [
'type' => 3,
'code' => 5,
'run' => 2
];

$vectorB = [
'type' => 3,
'code' => 5,
'run' => 2
];

$similarity = Cosine::similarity($vectorA, $vectorB);

Lisence

MIT