diff options
-rw-r--r-- | lib/zipf/SparseVector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |