eNTitanok.util
Class Veletlen.Exponencialis
java.lang.Object
|
+--eNTitanok.util.Veletlen
|
+--eNTitanok.util.Veletlen.Exponencialis
- Enclosing class:
- Veletlen
- public static class Veletlen.Exponencialis
- extends Veletlen
- implements Veletlen.Generalo
[d,b+d)-n lambda paraméterű, exponencialis eloszlású
számok egészre kerekítettjeinél
$d$-vel nagyobb számokat generál.
Field Summary |
protected int |
b
Felső határ (eltolás nélkül), nem tartozik az intervallumhoz. |
protected int |
d
Alsó határ, eltolás, belelértendő az intervallumba. |
protected double |
lambda
Az eloszlás paramétere. |
Method Summary |
int |
general()
Generálja a következő véletlenszámot. |
Methods inherited from class eNTitanok.util.Veletlen |
csakDetet,
egyenletes,
egyenletes,
exponencialis,
exponencialis,
getRandom,
getUtolso,
normalis,
normalis,
normalis,
poisson,
poisson,
sorba,
sorbaDelta |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
d
protected int d
- Alsó határ, eltolás, belelértendő az intervallumba.
b
protected int b
- Felső határ (eltolás nélkül), nem tartozik az intervallumhoz.
lambda
protected double lambda
- Az eloszlás paramétere. (Egyben várható értékének és szórásának is
reciproka.)
Veletlen.Exponencialis
public Veletlen.Exponencialis(java.util.Random random,
boolean csakDet,
int b,
int d,
double lambda)
- See Also:
Veletlen.Veletlen()
Veletlen.Exponencialis
public Veletlen.Exponencialis(int b,
int d)
general
public int general()
- Generálja a következő véletlenszámot.
- Specified by:
- general in interface Veletlen.Generalo