edu.cmu.minorthird.classify.algorithms.random
Class NegativeBinomial

java.lang.Object
  extended by edu.cmu.minorthird.classify.algorithms.random.NegativeBinomial

public class NegativeBinomial
extends java.lang.Object


Field Summary
protected  Gamma gamma
           
protected  int n
           
protected  double p
           
protected  Poisson poisson
           
 
Constructor Summary
NegativeBinomial(int n, double p)
           
 
Method Summary
 int nextInt()
           
 int nextInt(int n, double p)
           
 void setNandP(int n, double p)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

n

protected int n

p

protected double p

gamma

protected Gamma gamma

poisson

protected Poisson poisson
Constructor Detail

NegativeBinomial

public NegativeBinomial(int n,
                        double p)
Method Detail

nextInt

public int nextInt()

nextInt

public int nextInt(int n,
                   double p)

setNandP

public void setNandP(int n,
                     double p)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object