Interface Distribution

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Distribution.Parameterizer
      Common distributions parameters.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      double cdf​(double val)
      Return the cumulative density function at the given value.
      double logpdf​(double val)
      Return the log density of an existing value
      default double nextRandom​(java.util.Random random)
      Generate a new random value
      double pdf​(double val)
      Return the density of an existing value
      double quantile​(double val)
      Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
      java.lang.String toString()
      Describe the distribution
    • Method Detail

      • pdf

        double pdf​(double val)
        Return the density of an existing value
        Parameters:
        val - existing value
        Returns:
        distribution density
      • logpdf

        double logpdf​(double val)
        Return the log density of an existing value
        Parameters:
        val - existing value
        Returns:
        log distribution density
      • cdf

        double cdf​(double val)
        Return the cumulative density function at the given value.
        Parameters:
        val - existing value
        Returns:
        cumulative density
      • quantile

        double quantile​(double val)
        Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
        Parameters:
        val - Quantile to find
        Returns:
        Quantile position
      • nextRandom

        default double nextRandom​(java.util.Random random)
        Generate a new random value
        Parameters:
        random - Random number generator
        Returns:
        new random value
      • toString

        java.lang.String toString()
        Describe the distribution
        Overrides:
        toString in class java.lang.Object
        Returns:
        description