lsh 0.0.4-java → 0.0.5-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|