Object
# File lib/gauntlet.rb, line 321 def average return self.sum / self.length.to_f end
# File lib/gauntlet.rb, line 325 def sample_variance avg = self.average sum = 0 self.each { |i| sum += (i - avg) ** 2 } return (1 / self.length.to_f * sum) end
Generated with the Darkfish Rdoc Generator 2.