Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main/java/info/debatty/java/lsh/LSHMinHash.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ private int computeSignatureSize(final int s, final int n) {
public final int[] hash(final boolean[] vector) {
return hashSignature(this.mh.signature(vector));
}

/**
* Bin this set to corresponding buckets.
* @param set
* @return
*/
public final int[] hash(final Set<Integer> set) {
return hashSignature(this.mh.signature(set));
}

/**
* Get the coefficients used by internal hashing functions.
Expand Down