@Namespace(value="cv")
@NoOffset
public static class opencv_core.RNG_MT19937
extends org.bytedeco.javacpp.Pointer
Inspired by http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c \todo document
| Constructor and Description |
|---|
RNG_MT19937() |
RNG_MT19937(int s) |
RNG_MT19937(long size)
Native array allocator.
|
RNG_MT19937(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
apply() |
int |
apply(int N) |
double |
asDouble() |
float |
asFloat() |
int |
asInt() |
int |
next() |
opencv_core.RNG_MT19937 |
position(long position) |
void |
seed(int s) |
double |
uniform(double a,
double b)
\brief returns uniformly distributed double-precision floating-point random number from [a,b) range
|
float |
uniform(float a,
float b)
\brief returns uniformly distributed floating-point random number from [a,b) range
|
int |
uniform(int a,
int b)
\brief returns uniformly distributed integer random number from [a,b) range
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic RNG_MT19937(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public RNG_MT19937(long size)
Pointer.position(long).public RNG_MT19937()
public RNG_MT19937(@Cast(value="unsigned")
int s)
public opencv_core.RNG_MT19937 position(long position)
position in class org.bytedeco.javacpp.Pointerpublic void seed(@Cast(value="unsigned")
int s)
@Cast(value="unsigned") public int next()
@Name(value="operator int") public int asInt()
@Name(value="operator float") public float asFloat()
@Name(value="operator double") public double asDouble()
@Cast(value="unsigned")
@Name(value="operator ()")
public int apply(@Cast(value="unsigned")
int N)
@Cast(value="unsigned") @Name(value="operator ()") public int apply()
public int uniform(int a,
int b)
public float uniform(float a,
float b)
public double uniform(double a,
double b)
Copyright © 2018. All rights reserved.