public class EmpiricalRandom<C>
extends java.lang.Object
| Constructor and Description |
|---|
EmpiricalRandom(java.util.Map<C,java.lang.Double> empiricalExistence)
Constructor for the empirical occurrence based random generator
|
EmpiricalRandom(java.util.Map<C,java.lang.Double> empiricalExistence,
long seed)
Constructor for the empirical occurrence based random generator
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.collections.impl.UnmodifiableMap<C,java.lang.Double> |
getEmpiricalCdf() |
C |
nextEmpirical()
Get the next object
|
public EmpiricalRandom(java.util.Map<C,java.lang.Double> empiricalExistence, long seed)
empiricalExistence - Maps the different target objects to their frequence of occurrenceseed - Random Seedpublic EmpiricalRandom(java.util.Map<C,java.lang.Double> empiricalExistence)
empiricalExistence - Maps the different target objects to their frequence of occurrence