eNTitanok.util
Class Veletlen.Poisson

java.lang.Object
  |
  +--eNTitanok.util.Veletlen
        |
        +--eNTitanok.util.Veletlen.Poisson
Enclosing class:
Veletlen

public static class Veletlen.Poisson
extends Veletlen
implements Veletlen.Generalo

[d,b+d)-n lambda paraméterű, Poisson-eloszlású számokná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.Poisson(int b, int d)
           
Veletlen.Poisson(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éke és szórásnégyzete.)
Constructor Detail

Veletlen.Poisson

public Veletlen.Poisson(java.util.Random random,
                        boolean csakDet,
                        int b,
                        int d,
                        double lambda)
See Also:
Veletlen.Veletlen()

Veletlen.Poisson

public Veletlen.Poisson(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