Sha256: 299e41d8d9231a07f3c23fe4988fd613cda2ac99470a3cd9e0dc81d7423c022f

Contents?: true

Size: 781 Bytes

Versions: 4

Compression:

Stored size: 781 Bytes

Contents

# Similar

Similar is a library of functions to assist in determining the similarity
if arbitrary sets of data.

At the moment only the calculation of pearson scores is implemented.

## Installation

Add this line to your application's Gemfile:

    gem 'similar'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install similar

## Examples

    a = [1, 2, 3]
    b = [1, 2, 3]
    Similar.pearson_score(a, b)
    => 1.0

    a = [1, 2, 3]
    b = [1, 2, 5.0]
    Similar.pearson_score(a, b)
    => 0.9607689228305226

## 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
similar-0.0.4 README.md
similar-0.0.3 README.md
similar-0.0.2 README.md
similar-0.0.1 README.md