https://github.com/dewski/statly
A library of different similarity equations, maybe more.
https://github.com/dewski/statly
Last synced: about 1 year ago
JSON representation
A library of different similarity equations, maybe more.
- Host: GitHub
- URL: https://github.com/dewski/statly
- Owner: dewski
- License: mit
- Created: 2012-11-16T02:27:25.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-16T02:46:15.000Z (over 13 years ago)
- Last Synced: 2025-01-23T16:54:00.888Z (about 1 year ago)
- Language: Ruby
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Statly
TODO: Write a gem description
## Installation
Add this line to your application's Gemfile:
gem 'statly'
And then execute:
$ bundle
Or install it yourself as:
$ gem install statly
## Usage
There are (will be) an array of different similarity classes you can use:
### Jaccard Index
```ruby
ids_a = [1, 2, 3, 4]
ids_b = [1, 2, 4]
Statly::Similarity::Jaccard.coefficient(ids_a, ids_b) # => 0.75
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request