|
Qizx/open API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.axyana.qizxopen.util.RandomGene
Utilities for random generation of data. Used as XQuery Java extension functions.
Nested Class Summary | |
static class |
RandomGene.IdGenerator
|
static class |
RandomGene.RandomSelector
|
Constructor Summary | |
RandomGene()
|
Method Summary | |
static RandomGene.IdGenerator |
generator()
Simple id generator. |
static int |
idGenerate(RandomGene.IdGenerator generator)
|
static int |
random(long range)
Returns a number between 1 and N, with decaying probability |
static java.lang.Object |
select(RandomGene.RandomSelector selector)
|
static RandomGene.RandomSelector |
selector(java.lang.Object[] data)
random selector of an object in a list. |
static int |
xrandom(double decay)
Returns a number between 1 and N, with decaying probability |
static java.lang.Object |
xselect(RandomGene.RandomSelector selector,
double decay)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomGene()
Method Detail |
public static RandomGene.RandomSelector selector(java.lang.Object[] data)
public static java.lang.Object select(RandomGene.RandomSelector selector)
public static java.lang.Object xselect(RandomGene.RandomSelector selector, double decay)
public static RandomGene.IdGenerator generator()
public static int idGenerate(RandomGene.IdGenerator generator)
public static int random(long range)
public static int xrandom(double decay)
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |