@Deprecated public class DiscreteRandomProducer extends Object
| Constructor and Description |
|---|
DiscreteRandomProducer(double... probs)
Deprecated.
Creates an instance of DiscreteRandomProducer.
|
DiscreteRandomProducer(long seed,
double... probs)
Deprecated.
Creates an instance of DiscreteRandomProducer.
|
| Modifier and Type | Method and Description |
|---|---|
protected Random |
generator() |
Double |
get()
Deprecated.
|
int |
getInt()
Deprecated.
|
static double[] |
randomDistribution(int numOfValues)
Deprecated.
Generates pseudorandom discrete distribution.
|
static double[] |
randomDistribution(int numOfValues,
long seed)
Deprecated.
Generates pseudorandom discrete distribution.
|
int |
size()
Deprecated.
|
static DiscreteRandomProducer |
uniform(int numOfValues)
Deprecated.
Creates a producer of random values from uniform discrete distribution.
|
static DiscreteRandomProducer |
uniform(int numOfValues,
long seed)
Deprecated.
Creates a producer of random values from uniform discrete distribution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnoizify, noizify, vectorize, vectorizepublic DiscreteRandomProducer(double... probs)
probs - Discrete distribution probabilities.public DiscreteRandomProducer(long seed,
double... probs)
seed - Seed.probs - Discrete distribution probabilities.public static DiscreteRandomProducer uniform(int numOfValues)
numOfValues - Number of distinct values.public static DiscreteRandomProducer uniform(int numOfValues, long seed)
numOfValues - Number of distinct values.seed - Seed.public static double[] randomDistribution(int numOfValues)
numOfValues - Number of distinct values of pseudorandom variable.public static double[] randomDistribution(int numOfValues,
long seed)
numOfValues - Number of distinct values of pseudorandom variable.seed - Seed.public Double get()
public int getInt()
public int size()
protected Random generator()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.38 Release Date : September 22 2026