Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
17ebc2e2
Commit
17ebc2e2
authored
Apr 21, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarified spec
parent
26dab733
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
create_random_projection_hash_abstract.h
dlib/lsh/create_random_projection_hash_abstract.h
+6
-4
No files found.
dlib/lsh/create_random_projection_hash_abstract.h
View file @
17ebc2e2
...
@@ -33,10 +33,12 @@ namespace dlib
...
@@ -33,10 +33,12 @@ namespace dlib
ensures
ensures
- returns a hash function H such that:
- returns a hash function H such that:
- H.num_hash_bins() == pow(2,bits)
- H.num_hash_bins() == pow(2,bits)
- H will be setup so that it hashes the contents of v such that
- H will be setup so that it hashes the contents of v such that each bin
each bin ends up with roughly the same number of elements
ends up with roughly the same number of elements in it. This is
in it. This is accomplished by picking random hyperplanes
accomplished by picking random hyperplanes passing though the data. In
passing though the data.
particular, each plane normal vector is filled with Gaussian random
numbers and we also perform basic centering to ensure the plane passes
though the data.
!*/
!*/
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment