DistFromGen

class DistFromGen[@specialized A](f: Generator => A) extends Dist[A]
trait Dist[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(gen: Generator): A

Inherited methods

final
def count(pred: A => Boolean, n: Int)(implicit gen: Generator): Int
Inherited from
Dist
def ev(n: Int)(implicit gen: Generator, alg: Field[A]): A
Inherited from
Dist
def fill(gen: Generator, arr: Array[A]): Unit
Inherited from
Dist
final
def filter(pred: A => Boolean): Dist[A]
Inherited from
Dist
final
def flatMap[B](f: A => Dist[B]): Dist[B]
Inherited from
Dist
def foldn[B](init: B, n: Int)(f: (B, A) => B): Dist[B]
Inherited from
Dist
final
def given(pred: A => Boolean): Dist[A]
Inherited from
Dist
def histogram(n: Int)(implicit gen: Generator): Map[A, Double]
Inherited from
Dist
def iterate(n: Int, f: A => Dist[A]): Dist[A]
Inherited from
Dist
def iterateUntil(pred: A => Boolean, f: A => Dist[A]): Dist[A]
Inherited from
Dist
final
def map[B](f: A => B): Dist[B]
Inherited from
Dist
def pack(n: Int)(implicit ct: ClassTag[A]): Dist[Array[A]]
Inherited from
Dist
def pr(pred: A => Boolean, n: Int)(implicit gen: Generator): Double
Inherited from
Dist
def rawHistogram(n: Int)(implicit gen: Generator): Map[A, Int]
Inherited from
Dist
def repeat[CC <: (Seq)](n: Int)(implicit cbf: Factory[A, CC[A]]): Dist[CC[A]]
Inherited from
Dist
def sample[CC <: (Iterable)](n: Int)(implicit gen: Generator, cbf: Factory[A, CC[A]]): CC[A]
Inherited from
Dist
def sum(n: Int)(implicit gen: Generator, alg: Rig[A]): A
Inherited from
Dist
final
def toIterator(gen: Generator): Iterator[A]
Inherited from
Dist
final
def toLazyList(gen: Generator): LazyList[A]
Inherited from
Dist
def unfold[B](init: B)(f: (B, A) => B)(pred: B => Boolean): Dist[B]
Inherited from
Dist
def until(pred: A => Boolean): Dist[Seq[A]]
Inherited from
Dist
final
def zip[B](that: Dist[B]): Dist[(A, B)]
Inherited from
Dist
def zipWith[B, C](that: Dist[B])(f: (A, B) => C): Dist[C]
Inherited from
Dist

Deprecated and Inherited methods

@deprecated("prefer toLazyList instead", "0.17.0")
final
def toStream(gen: Generator): Stream[A]
Deprecated
Inherited from
Dist