Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8ba95cd4
Commit
8ba95cd4
authored
Apr 11, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8548 from csukuangfj:fix-typo-RNG
parents
4e31eef7
40657782
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
core.hpp
modules/core/include/opencv2/core.hpp
+3
-3
No files found.
modules/core/include/opencv2/core.hpp
View file @
8ba95cd4
...
@@ -2762,7 +2762,7 @@ public:
...
@@ -2762,7 +2762,7 @@ public:
double a1 = rng.uniform((double)0, (double)1);
double a1 = rng.uniform((double)0, (double)1);
// produces float from [0, 1)
// produces float from [0, 1)
double
b = rng.uniform(0.f, 1.f);
float
b = rng.uniform(0.f, 1.f);
// produces double from [0, 1)
// produces double from [0, 1)
double c = rng.uniform(0., 1.);
double c = rng.uniform(0., 1.);
...
@@ -2778,8 +2778,8 @@ public:
...
@@ -2778,8 +2778,8 @@ public:
want a floating-point random number, but the range boundaries are
want a floating-point random number, but the range boundaries are
integer numbers, either put dots in the end, if they are constants, or
integer numbers, either put dots in the end, if they are constants, or
use explicit type cast operators, as in the a1 initialization above.
use explicit type cast operators, as in the a1 initialization above.
@param a lower inclusive boundary of the returned random number
s
.
@param a lower inclusive boundary of the returned random number.
@param b upper non-inclusive boundary of the returned random number
s
.
@param b upper non-inclusive boundary of the returned random number.
*/
*/
int
uniform
(
int
a
,
int
b
);
int
uniform
(
int
a
,
int
b
);
/** @overload */
/** @overload */
...
...
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