Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
1c96db9e
Commit
1c96db9e
authored
Jul 28, 2017
by
Leo
Committed by
Davis E. King
Jul 28, 2017
Browse files
Fix strange dash in Box-Muller (#732)
parent
999306e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/general_hash/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