Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In the RNG documentation there appears to be an error...

At this link:

http://docs.opencv.org/trunk/modules/core/doc/operations_on_arrays.html?highlight=rng#RNG::RNG()

it says:

"These are the RNG constructors. The first form sets the state to some pre-defined value, equal to 2**32-1 in the current implementation. The second form sets the state to the specified value. If you passed state=0 , the constructor uses the above default value instead to avoid the singular random number sequence, consisting of all zeros."

what is this statement, "2*32-1", referring to? Should it be 232-1, or does ** have some signigicance in c++.

In the RNG documentation there appears to be an error...

At this link:

http://docs.opencv.org/trunk/modules/core/doc/operations_on_arrays.html?highlight=rng#RNG::RNG()

it says:

"These are the RNG constructors. The first form sets the state to some pre-defined value, equal to 2**32-1 in the current implementation. The second form sets the state to the specified value. If you passed state=0 , the constructor uses the above default value instead to avoid the singular random number sequence, consisting of all zeros."

what is this statement, "2*32-1", referring to? Should it be 232-1, 2*32-1, or does ** * have some signigicance in c++.

click to hide/show revision 3
retagged

updated 2014-06-21 03:54:40 -0600

berak gravatar image

In the RNG documentation there appears to be an error...

At this link:

http://docs.opencv.org/trunk/modules/core/doc/operations_on_arrays.html?highlight=rng#RNG::RNG()

it says:

"These are the RNG constructors. The first form sets the state to some pre-defined value, equal to 2**32-1 in the current implementation. The second form sets the state to the specified value. If you passed state=0 , the constructor uses the above default value instead to avoid the singular random number sequence, consisting of all zeros."

what is this statement, "2*32-1", referring to? Should it be 2*32-1, or does * have some signigicance in c++.

In the RNG documentation there appears to be an error...

At this link:

http://docs.opencv.org/trunk/modules/core/doc/operations_on_arrays.html?highlight=rng#RNG::RNG()

it says:

"These are the RNG constructors. The first form sets the state to some pre-defined value, equal to 2**32-1 in the current implementation. The second form sets the state to the specified value. If you passed state=0 , the constructor uses the above default value instead to avoid the singular random number sequence, consisting of all zeros."

what is this statement, "2*32-1", 2**32-1, referring to? Should it be 2*32-1, or does * ** have some signigicance in c++.