@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_core.class) public class RNG_MT19937 extends Pointer
Inspired by http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c \todo document
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RNG_MT19937() |
RNG_MT19937(int s) |
RNG_MT19937(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() |
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, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public RNG_MT19937(Pointer p)
Pointer(Pointer)
.public RNG_MT19937()
@Cast(value="unsigned") @Name(value="operator ()") public int apply(@Cast(value="unsigned") int N)
public int uniform(int a, int b)
public float uniform(float a, float b)
public double uniform(double a, double b)
Copyright © 2024. All rights reserved.