jphase.generator

## Class PhaseGenerator

- java.lang.Object
- - jphase.generator.PhaseGenerator

- Direct Known Subclasses:
    NeutsContPHGenerator, NeutsDiscPHGenerator

      public abstract class PhaseGenerator
      extends java.lang.Object

  This abstract class defines the behavior of classes that implement Phase-Type random number generators
  Version:
    1.0
  Author:
    Juan F. Perez

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PhaseGenerator(PhaseVar var)` Constructs a new PhaseGenerator, initializing it

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract double` | `getRandom()`
    `abstract double[]` | `getRandom(int num)`
    `PhaseVar` | `getVar()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PhaseGenerator

          public PhaseGenerator(PhaseVar var)

      Constructs a new PhaseGenerator, initializing it
      Parameters:
        `var` - variable from which the random numbers must be generated

  - ### Method Detail

    - #### getRandom

          public abstract double getRandom()

      Returns:
        A random number that has a probability distribution of Phase-Type

    - #### getRandom

          public abstract double[] getRandom(int num)

      Parameters:
        `num` - Number of variates to be generated
      Returns:
        A vector of random numbers that have a probability distribution of Phase-Type

    - #### getVar

          public PhaseVar getVar()

      Returns:
        Phase variable that is being used to generate the random numbers