before(:each) do
@critics = {
"Lisa Rose" => {"Lady in the Water" => 2.5, "Snakes on a Plane" => 3.5,
...
def pearson(first,second)
common = first.select{|title,rating| second.include?(title) }
return if common.empty?
...
Ruby Pearson coefficient calcula...
by Brianthecoder,
March 13, 2008 14:08,
2 refactorings
This was ported from python...
require 'rubygems' require 'uri' require 'net/http' ...
Ruby Technorati Ping
This code is made to be in ...