Skip to content

Commit 7fe03f8

Browse files
committed
Touch up the n_hashes documentation.
1 parent 10de1f2 commit 7fe03f8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/src/lshfunction_api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ julia> hashfn = LSHFunction(jaccard, 10);
8787
8888
julia> n_hashes(hashfn)
8989
10
90+
91+
julia> hashes = hashfn(randn(50));
92+
93+
julia> length(hashes)
94+
10
9095
```
9196

9297
- [`similarity`](@ref): returns the similarity function for which the input [`LSHFunction`](@ref) is locality-sensitive:

src/LSHBase.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ julia> hashfn = SimHash(12);
120120
121121
julia> n_hashes(hashfn)
122122
12
123+
124+
julia> hashes = hashfn(rand(25));
125+
126+
julia> length(hashes)
127+
12
123128
```
124129
"""
125130
function n_hashes end

0 commit comments

Comments
 (0)