lsh 0.0.4-java → 0.0.5-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lsh/index.rb +4 -0
- metadata +1 -1
data/lib/lsh/index.rb
CHANGED
@@ -136,6 +136,10 @@ module LSH
|
|
136
136
|
MathUtil.dot(v1, v2)
|
137
137
|
end
|
138
138
|
|
139
|
+
def inspect
|
140
|
+
"LSH index; dimension: #{@dim}; window size: #{@window}; #{@number_of_random_vectors} random vectors; #{@number_of_independent_projections} independent projections"
|
141
|
+
end
|
142
|
+
|
139
143
|
end
|
140
144
|
|
141
145
|
end
|