trait ProbabilityDistribution[A] extends Any
A probability distribution, from which we can pick values at random (the only abstract method). We can obtain a random variable from this, which is an iterator.
- Self Type
- ProbabilityDistribution[A]
- Alphabetic
- By Inheritance
- ProbabilityDistribution
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toany2stringadd[ProbabilityDistribution[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ProbabilityDistribution[A], B)
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toArrowAssoc[ProbabilityDistribution[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- def <++>(components: => Vector[Weighted[ProbabilityDistribution[A]]]): Mixture[A]
mix in weighted distributions; the mixed in distributions are called by name, so can depend on this distribution.
- def <+>(mixin: => ProbabilityDistribution[A], weight: Double): Mixin[A]
generates from the mixed in distribution with probability _weight_, otherwise defaults to this distribution; as the mixed in distribution is called by name, it may depend on the present one.
- def <+?>(mixin: => ProbabilityDistribution[Option[A]], weight: Double): MixinOpt[A]
generates from the mixed in optional valued distribution with probability
weight
, otherwise, or if the optional returns None, defaults to this distribution; the mixed in distribution is call by name, so may depend on this distribution. - final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def condMap[B](f: (A) => Option[B]): ProbabilityDistribution[B]
- def conditioned(p: (A) => Boolean): ProbabilityDistribution[A]
- def ensuring(cond: (ProbabilityDistribution[A]) => Boolean, msg: => Any): ProbabilityDistribution[A]
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toEnsuring[ProbabilityDistribution[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ProbabilityDistribution[A]) => Boolean): ProbabilityDistribution[A]
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toEnsuring[ProbabilityDistribution[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ProbabilityDistribution[A]
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toEnsuring[ProbabilityDistribution[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ProbabilityDistribution[A]
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toEnsuring[ProbabilityDistribution[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- def fibProduct[Q, B](quot: (A) => Q, fibers: (Q) => ProbabilityDistribution[B]): FiberProduct[A, Q, B]
- def findFut(p: (A) => Boolean, maxloops: Long): Future[Option[A]]
Find element satisfying predicate, runs concurrently, returning future
- def flatMap[B](f: (A) => ProbabilityDistribution[B]): ProbabilityDistribution[B]
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toStringFormat[ProbabilityDistribution[A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- def hashCode(): Int
- Definition Classes
- Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (A) => B): ProbabilityDistribution[B]
- def product[B](that: ProbabilityDistribution[B]): Product[A, B]
- def randomVariable: Iterator[A]
- def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def →[B](y: B): (ProbabilityDistribution[A], B)
- Implicit
- This member is added by an implicit conversion from ProbabilityDistribution[A] toArrowAssoc[ProbabilityDistribution[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.