jsim.variate
Class StudentT

java.lang.Object
  extended by jsim.variate.Variate
      extended by jsim.variate.StudentT

public class StudentT
extends Variate

Student t random variate generation.


Constructor Summary
StudentT(double n, int i)
          Constructs a Student t random variate.
StudentT(int n, int i)
          Constructs a Student t random variate.
 
Method Summary
 double gen()
          Generates a random number from Student t distribution.
 java.lang.Double[] getParameters()
          Get the parameters of the constuctor
 
Methods inherited from class jsim.variate.Variate
incStream, printName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StudentT

public StudentT(int n,
                int i)
Constructs a Student t random variate.

Parameters:
n - degrees of freedom
i - random number stream

StudentT

public StudentT(double n,
                int i)
Constructs a Student t random variate.

Parameters:
n - degrees of freedom
i - random number stream
Method Detail

getParameters

public java.lang.Double[] getParameters()
Get the parameters of the constuctor

Overrides:
getParameters in class Variate

gen

public double gen()
Generates a random number from Student t distribution.

Overrides:
gen in class Variate
Returns:
double random number from Student t distribution