case class FlatMapped[A, B](base: ProbabilityDistribution[A], f: (A) => ProbabilityDistribution[B]) extends ProbabilityDistribution[B] with scala.Product with Serializable
- Alphabetic
- By Inheritance
- FlatMapped
- Serializable
- Product
- Equals
- ProbabilityDistribution
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FlatMapped(base: ProbabilityDistribution[A], f: (A) => ProbabilityDistribution[B])
Value Members
- def <++>(components: => Vector[Weighted[ProbabilityDistribution[B]]]): Mixture[B]
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[B], weight: Double): Mixin[B]
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[B]], weight: Double): MixinOpt[B]
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
- val base: ProbabilityDistribution[A]
- def condMap[B](f: (B) => Option[B]): ProbabilityDistribution[B]
- Definition Classes
- ProbabilityDistribution
- def conditioned(p: (B) => Boolean): ProbabilityDistribution[B]
- Definition Classes
- ProbabilityDistribution
- val f: (A) => ProbabilityDistribution[B]
- def fibProduct[Q, B](quot: (B) => Q, fibers: (Q) => ProbabilityDistribution[B]): FiberProduct[B, Q, B]
- Definition Classes
- ProbabilityDistribution
- def findFut(p: (B) => Boolean, maxloops: Long): Future[Option[B]]
Find element satisfying predicate, runs concurrently, returning future
Find element satisfying predicate, runs concurrently, returning future
- Definition Classes
- ProbabilityDistribution
- def flatMap[B](f: (B) => ProbabilityDistribution[B]): ProbabilityDistribution[B]
- Definition Classes
- ProbabilityDistribution
- def map[B](f: (B) => B): ProbabilityDistribution[B]
- Definition Classes
- ProbabilityDistribution
- def next: B
the next random value
the next random value
- Definition Classes
- FlatMapped → ProbabilityDistribution
- def product[B](that: ProbabilityDistribution[B]): Product[B, B]
- Definition Classes
- ProbabilityDistribution
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def randomVariable: Iterator[B]
- Definition Classes
- ProbabilityDistribution