From 27e33ffefd1243887b5cd78984310d9c4d4e88d4 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sat, 9 Jan 2016 17:29:06 +0100 Subject: typo --- lib/zipf/SparseVector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zipf/SparseVector.rb b/lib/zipf/SparseVector.rb index 456aeb2..8a1cff7 100644 --- a/lib/zipf/SparseVector.rb +++ b/lib/zipf/SparseVector.rb @@ -151,7 +151,7 @@ class SparseVector < Hash self.dot(other)/(self.magnitude*other.magnitude) end - def euclidian_dist other + def euclidean_dist other dims = [self.keys, other.keys].flatten.uniq sum = 0.0 dims.each { |d| sum += (self[d] - other[d])**2 } -- cgit v1.2.3