Skip to content

'similarity_engine' provides feature for calculating similarity of vector such as Cosine-similarity.

License

Notifications You must be signed in to change notification settings

yukihir0/similarity_engine

Repository files navigation

SimilarityEngine Build Status Coverage Status

'similarity_engine' provides feature for calculating similarity of vector such as Cosine-similarity.

Requirements

  • ruby >= 2.0

Install

Add this line to your application's Gemfile:

gem 'similarity_engine', :github => 'yukihir0/similarity_engine'

And then execute:

% bundle install

How to use

vec_x = [1, 2, 3]
vec_y = [2, 4, 6]

engine = SimilarityEngine.new
similarity = engine.analyze(vec_x, vec_y)
puts similarity

For more information, please see here.

License

Copyright © 2013 yukihir0

About

'similarity_engine' provides feature for calculating similarity of vector such as Cosine-similarity.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages