Class

probability_monad

Distributions

Related Doc: package probability_monad

Permalink

class Distributions extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Distributions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Distributions(rand: Random)

    Permalink

Type Members

  1. sealed abstract class Coin extends AnyRef

    Permalink

    Discrete distributions

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def F(d1: Int, d2: Int): Distribution[Double]

    Permalink
  5. object H extends Coin with Product with Serializable

    Permalink
  6. object T extends Coin with Product with Serializable

    Permalink
  7. def always[A](value: A): Distribution[A]

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def bernoulli(p: Double = 0.5): Distribution[Int]

    Permalink
  10. def beta(a: Double, b: Double): Distribution[Double]

    Permalink
  11. def biasedCoin(p: Double): Distribution[Coin]

    Permalink
  12. def binomial(p: Double, n: Int): Distribution[Int]

    Permalink
  13. def cauchy: Distribution[Double]

    Permalink
  14. def chi2(n: Int): Distribution[Double]

    Permalink
  15. def chi2test[A, B](d: Distribution[(A, B)]): Double

    Permalink

    Determine if a joint probability distribution is composed of 2 independent events.

    Determine if a joint probability distribution is composed of 2 independent events. Uses the G-test: http://en.wikipedia.org/wiki/G-test

  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def coin: Distribution[Coin]

    Permalink
  18. def d(n: Int): Distribution[Int]

    Permalink
  19. def dice(n: Int): Distribution[List[Int]]

    Permalink
  20. def die: Distribution[Int]

    Permalink
  21. def dirichlet(alphas: List[Double]): Distribution[List[Double]]

    Permalink
  22. def discrete[A](weightedValues: (A, Double)*): Distribution[A]

    Permalink
  23. def discreteUniform[A](values: Iterable[A]): Distribution[A]

    Permalink
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. def exponential(l: Double): Distribution[Double]

    Permalink
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def freeze[A](d: Distribution[A], sampleSize: Int = 100000): Distribution[A]

    Permalink

    "Freeze" a distribution by taking a sample and serving values out of that sample at random.

    "Freeze" a distribution by taking a sample and serving values out of that sample at random. Useful for when a distribution is expensive to compute and is being sampled from repeatedly.

  29. def gamma(k: Double, theta: Double): Distribution[Double]

    Permalink
  30. def geometric(p: Double): Distribution[Int]

    Permalink
  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  32. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def ksTest[A](d1: Distribution[A], d2: Distribution[A])(implicit ord: Ordering[A]): Double

    Permalink

    Tests if two probability distributions are the same using the Kolmogorov-Smirnov test.

    Tests if two probability distributions are the same using the Kolmogorov-Smirnov test. The distributions are unlikely to be the same (p < 0.05) if the value is greater than 1.35 and very unlikely (p < 0.001) if the value is greater than 1.95.

  35. def laplace(b: Double): Distribution[Double]

    Permalink
  36. def lognormal: Distribution[Double]

    Permalink
  37. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. def negativeBinomial(p: Double, r: Int): Distribution[Int]

    Permalink
  39. object normal extends Distribution[Double]

    Permalink
  40. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. def pareto(a: Double, xm: Double = 1.0): Distribution[Double]

    Permalink
  43. def poisson(lambda: Double): Distribution[Int]

    Permalink
  44. def sequence[T](ds: List[Distribution[T]]): Distribution[List[T]]

    Permalink
  45. def students_t(df: Int): Distribution[Double]

    Permalink
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def tf(p: Double = 0.5): Distribution[Boolean]

    Permalink
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. object uniform extends Distribution[Double]

    Permalink

    Continuous distributions

  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def weibull(l: Double, k: Double): Distribution[Double]

    Permalink
  54. def zipf(s: Double, n: Int): Distribution[Int]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped