1 2 3 4
before(:each) do @critics = { "Lisa Rose" => {"Lady in the Water" => 2.5, "Snakes on a Plane" => 3.5, ...
1 2 3 4
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,
1 refactoring
This was ported from python...
1 2 3 4
require 'rubygems' require 'uri' require 'net/http' ...
Ruby Technorati Ping
This code is made to be in ...