A rails plugin intended to makes easy the models comparison and determine similarity between models or objects.
Fetching latest commit…
Cannot retrieve the latest commit at this time
== Last Changes == 09-Aug-2009 - 05:36 AM -Added ar_object_to_hash(arObject) method This method is used to convert a ActiveRecord Object to a Hash. -Added similarity_of(arObject1,arObject2) method This method is used to get the similarity between 2 ActiveRecord objects returning a float where more similar it is more it gets close to 1.0 , and 1.0 means totally equal. -Changed pearson_correlation in order to filter non-integer values from the hash values. 09-Aug-2009 - 04:42 AM (First Method) -Added Pearson Correlation comparsion function receiving 2 hash lists as parameters. pearson_correlation(hash1,hash2) --------- This plugin is intended to provide methods and classes in order to make easy the similarity comparsion in rails between Models and objects. This plugin is licensed under GPLv3 terms. Author: Régis Mesquita <email@example.com>