org.jliszka.probabilitymonad

Distribution

trait Distribution[A] extends AnyRef

Self Type
Distribution[A]
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Distribution
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def get: A

    Attributes
    protected

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *(x: A)(implicit n: Numeric[A]): Distribution[A]

  5. def *(d: Distribution[A])(implicit n: Numeric[A]): Distribution[A]

  6. def +(x: A)(implicit n: Numeric[A]): Distribution[A]

  7. def +(d: Distribution[A])(implicit n: Numeric[A]): Distribution[A]

  8. def -(x: A)(implicit n: Numeric[A]): Distribution[A]

  9. def -(d: Distribution[A])(implicit n: Numeric[A]): Distribution[A]

  10. def /(x: A)(implicit toDouble: <:<[A, Double]): Distribution[Double]

  11. def /(d: Distribution[A])(implicit toDouble: <:<[A, Double]): Distribution[Double]

  12. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def bucketedHist(min: Double, max: Double, nbuckets: Int, roundDown: Boolean = false)(implicit ord: Ordering[A], toDouble: <:<[A, Double]): Unit

  16. def bucketedHist(buckets: Int)(implicit ord: Ordering[A], toDouble: <:<[A, Double]): Unit

  17. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  20. def ev(implicit toDouble: <:<[A, Double]): Double

  21. def filter(pred: (A) ⇒ Boolean): Distribution[A]

  22. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def flatMap[B](f: (A) ⇒ Distribution[B]): Distribution[B]

  24. def freeze: Distribution[A]

    "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.

  25. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  26. def given(pred: (A) ⇒ Boolean): Distribution[A]

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def hist(implicit ord: Ordering[A] = null, d: <:<[A, Double] = null): Unit

  29. def histData: Map[A, Double]

  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def kurtosis(implicit toDouble: <:<[A, Double]): Double

  32. def map[B](f: (A) ⇒ B): Distribution[B]

  33. def markov(pred: (A) ⇒ Boolean)(f: (A) ⇒ Distribution[A]): Distribution[A]

  34. final def markov(n: Int)(f: (A) ⇒ Distribution[A]): Distribution[A]

    Markov chains

    Markov chains

    Annotations
    @tailrec()
  35. def mean(implicit toDouble: <:<[A, Double]): Double

  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. def posterior[B](experiment: (A) ⇒ Distribution[B])(observed: (B) ⇒ Boolean): Distribution[A]

    Using this distribution as a prior, compute the posterior distribution after running an experiment and observing some outcomes and not others.

  40. def pr(pred: (A) ⇒ Boolean, given: (A) ⇒ Boolean = (a: A) => true, samples: Int = N): Double

  41. def repeat(n: Int): Distribution[List[A]]

  42. def sample(n: Int = N): List[A]

  43. def skewness(implicit toDouble: <:<[A, Double]): Double

  44. def stdev(implicit toDouble: <:<[A, Double]): Double

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

    Definition Classes
    AnyRef
  46. def toString(): String

    Definition Classes
    Distribution → AnyRef → Any
  47. def until(pred: (List[A]) ⇒ Boolean): Distribution[List[A]]

  48. def variance(implicit toDouble: <:<[A, Double]): Double

  49. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. def zip[B](d: Distribution[B]): Distribution[(A, B)]

  53. def zipWith[B, C](d: Distribution[B])(f: (A, B) ⇒ C): Distribution[C]

Inherited from AnyRef

Inherited from Any