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
1c96db9e
Commit
1c96db9e
authored
Jul 28, 2017
by
Leo
Committed by
Davis E. King
Jul 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix strange dash in Box-Muller (#732)
parent
999306e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
random_hashing.h
dlib/general_hash/random_hashing.h
+1
-1
No files found.
dlib/general_hash/random_hashing.h
View file @
1c96db9e
...
...
@@ -862,7 +862,7 @@ namespace dlib
const
static
uint64
mask
=
max
-
1
;
return
logvals
[
h
.
first
&
mask
]
*
cosvals
[
h
.
second
&
mask
];
// Note that we are just using the Box
–
Muller transform to compute the result. In
// Note that we are just using the Box
-
Muller transform to compute the result. In
// particular, we are doing this (where u1 and u2 are uniform random variables in
// the range [0,1]):
// return sqrt(-2*log(u1)) * cos(2*PI*u2);
...
...
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