Interface Distribution

All Superinterfaces:
Serializable, TetradSerializable
All Known Implementing Classes:
Beta, ChiSquare, Discrete, Exponential, Gamma, GaussianPower, Indicator, LogNormal, MixtureOfGaussians, Normal, Poisson, SingleValue, Split, TruncatedNormal, Uniform

public interface Distribution extends TetradSerializable
Interface for a statistical distribution from which random values can be drawn. Methods are provided for setting/getting parameters in the interface. A single random number generator is used throughout Tetrad to ensure randomness.
Author:
josephramsey
  • Field Details

  • Method Details

    • getNumParameters

      int getNumParameters()
      Returns:
      Ibid.
    • getName

      String getName()
      Returns:
      Ibid.
    • setParameter

      void setParameter(int index, double value)
      Sets the index'th parameter to the given value.
      Parameters:
      index - Ibid. Must be >= 0 and < # parameters.
      value - Ibid.
    • getParameter

      double getParameter(int index)
      Parameters:
      index - Ibid. Muist be <= 0 and < # parameters.
      Returns:
      The Ibid.
    • getParameterName

      String getParameterName(int index)
      The name of the index'th parameter, for display purposes.
      Parameters:
      index - Ibid. Must be >= 0 and < # parameters.
      Returns:
      Ibid.
    • nextRandom

      double nextRandom()
      Returns:
      Ibid.