class Mixin[A] extends ProbabilityDistribution[A]
- Alphabetic
- By Inheritance
- Mixin
- ProbabilityDistribution
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Mixin(base: ProbabilityDistribution[A], mixin: => ProbabilityDistribution[A], weight: Double)
Value Members
- 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.
mix in weighted distributions; the mixed in distributions are called by name, so can depend on this distribution.
- Definition Classes
- ProbabilityDistribution
- 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.
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.
- Definition Classes
- ProbabilityDistribution
- 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.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.- Definition Classes
- ProbabilityDistribution
- def condMap[B](p: (A) => Option[B]): Mixin[B]
- Definition Classes
- Mixin → ProbabilityDistribution
- def conditioned(p: (A) => Boolean): Mixin[A]
- Definition Classes
- Mixin → ProbabilityDistribution
- def fibProduct[Q, B](quot: (A) => Q, fibers: (Q) => ProbabilityDistribution[B]): FiberProduct[A, Q, B]
- Definition Classes
- ProbabilityDistribution
- def findFut(p: (A) => Boolean, maxloops: Long): Future[Option[A]]
Find element satisfying predicate, runs concurrently, returning future
Find element satisfying predicate, runs concurrently, returning future
- Definition Classes
- ProbabilityDistribution
- lazy val first: ProbabilityDistribution[A]
- def flatMap[B](f: (A) => ProbabilityDistribution[B]): ProbabilityDistribution[B]
- Definition Classes
- ProbabilityDistribution
- def map[B](f: (A) => B): ProbabilityDistribution[B]
- Definition Classes
- ProbabilityDistribution
- def next: A
the next random value
the next random value
- Definition Classes
- Mixin → ProbabilityDistribution
- lazy val p: Double
- def product[B](that: ProbabilityDistribution[B]): Product[A, B]
- Definition Classes
- ProbabilityDistribution
- lazy val q: Double
- def randomVariable: Iterator[A]
- Definition Classes
- ProbabilityDistribution
- lazy val second: ProbabilityDistribution[A]