Documentation of 'Catalano.Statistics.Distributions.DiscreteUniformDistribution' Java class
DiscreteUniformDistribution
Catalano.Statistics.Distributions

Class DiscreteUniformDistribution

    • Constructor Summary

      Constructors 
      Constructor and Description
      DiscreteUniformDistribution(int a, int b)
      Initializes a new instance of the DiscreteUniformDistribution class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double DistributionFunction(int k)
      Gets the cumulative distribution function (cdf) for this distribution evaluated at point k.
      double Entropy()
      Gets the entropy for this distribution.
      double getLength()
      Gets the length of the distribution (b - a + 1).
      double getMaximum()
      Gets the maximum value of the distribution (b).
      double getMinimum()
      Gets the minimum value of the distribution (a).
      double LogProbabilityMassFunction(int k)
      Gets the log-probability mass function (pmf) for this distribution evaluated at point x.
      double Mean()
      Gets the mean for this distribution.
      double ProbabilityMassFunction(int k)
      Gets the probability mass function (pmf) for this distribution evaluated at point x.
      double Variance()
      Gets the variance for this distribution.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiscreteUniformDistribution

        public DiscreteUniformDistribution(int a,
                                           int b)
        Initializes a new instance of the DiscreteUniformDistribution class.
        Parameters:
        a - The starting (minimum) value a.
        b - The ending (maximum) value b.
    • Method Detail

      • getMinimum

        public double getMinimum()
        Gets the minimum value of the distribution (a).
        Returns:
        Minimum value.
      • getMaximum

        public double getMaximum()
        Gets the maximum value of the distribution (b).
        Returns:
        Maximum value.
      • getLength

        public double getLength()
        Gets the length of the distribution (b - a + 1).
        Returns:
        Length.
      • DistributionFunction

        public double DistributionFunction(int k)
        Description copied from interface: IDiscreteDistribution
        Gets the cumulative distribution function (cdf) for this distribution evaluated at point k. The Cumulative Distribution Function (CDF) describes the cumulative probability that a given value or any value smaller than it will occur.
        Specified by:
        DistributionFunction in interface IDiscreteDistribution
        Parameters:
        k - A single point in the distribution range.
        Returns:
        Result.
      • ProbabilityMassFunction

        public double ProbabilityMassFunction(int k)
        Description copied from interface: IDiscreteDistribution
        Gets the probability mass function (pmf) for this distribution evaluated at point x. The Probability Mass Function (PMF) describes the probability that a given value k will occur.
        Specified by:
        ProbabilityMassFunction in interface IDiscreteDistribution
        Parameters:
        k - A single point in the distribution range.
        Returns:
        The probability of k occurring in the current distribution.
      • LogProbabilityMassFunction

        public double LogProbabilityMassFunction(int k)
        Description copied from interface: IDiscreteDistribution
        Gets the log-probability mass function (pmf) for this distribution evaluated at point x. The Probability Mass Function (PMF) describes the probability that a given value k will occur.
        Specified by:
        LogProbabilityMassFunction in interface IDiscreteDistribution
        Parameters:
        k - A single point in the distribution range.
        Returns:
        The logarithm of the probability of k occurring in the current distribution.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.