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.


Inner classes inherited from class eNTitanok.util.Veletlen
Veletlen.CsakDetException, Veletlen.DetHatarException, Veletlen.Egyenletes, Veletlen.Exponencialis, Veletlen.Generalo, Veletlen.Normalis, Veletlen.Poisson, Veletlen.Veges
 
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.
 
Fields inherited from class eNTitanok.util.Veletlen
csakDet, kovetkezo, random
 
Constructor Summary
Veletlen.Exponencialis(int b, int d)
           
Veletlen.Exponencialis(java.util.Random random, boolean csakDet, int b, int d, double lambda)
           
 
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
 

Field Detail

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.)
Constructor Detail

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)
Method Detail

general

public int general()
Generálja a következő véletlenszámot.
Specified by:
general in interface Veletlen.Generalo