spire.random

Dist

trait Dist[A] extends Any

Self Type
Dist[A]
Linear Supertypes
Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Dist
  2. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(gen: Generator): A

  2. abstract def getClass(): Class[_]

    Definition Classes
    Any

Concrete Value Members

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

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

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

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

    Definition Classes
    Any
  5. final def count(pred: (A) ⇒ Boolean, n: Int)(implicit gen: Generator): Int

  6. def equals(arg0: Any): Boolean

    Definition Classes
    Any
  7. def ev(n: Int)(implicit gen: Generator, alg: Field[A]): A

  8. def fill(gen: Generator, arr: Array[A]): Unit

  9. final def filter(pred: (A) ⇒ Boolean): Dist[A]

  10. final def flatMap[B](f: (A) ⇒ Dist[B]): Dist[B]

  11. def foldn[B](init: B, n: Int)(f: (B, A) ⇒ B): Dist[B]

  12. final def given(pred: (A) ⇒ Boolean): Dist[A]

  13. def hashCode(): Int

    Definition Classes
    Any
  14. def histogram(n: Int)(implicit gen: Generator): Map[A, Double]

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def iterate(n: Int, f: (A) ⇒ Dist[A]): Dist[A]

  17. def iterateUntil(pred: (A) ⇒ Boolean, f: (A) ⇒ Dist[A]): Dist[A]

  18. final def map[B](f: (A) ⇒ B): Dist[B]

  19. def pack(n: Int)(implicit ct: ClassTag[A]): Dist[Array[A]]

  20. def pr(pred: (A) ⇒ Boolean, n: Int)(implicit gen: Generator): Double

  21. def rawHistogram(n: Int)(implicit gen: Generator): Map[A, Int]

  22. def repeat[CC[X] <: Seq[X]](n: Int)(implicit cbf: CanBuildFrom[Nothing, A, CC[A]]): Dist[CC[A]]

  23. def sample[CC[X] <: Iterable[X]](n: Int)(implicit gen: Generator, cbf: CanBuildFrom[CC[A], A, CC[A]]): CC[A]

  24. def sum(n: Int)(implicit gen: Generator, alg: Rig[A]): A

  25. final def toIterator(gen: Generator): Iterator[A]

  26. final def toStream(gen: Generator): Stream[A]

  27. def toString(): String

    Definition Classes
    Any
  28. def unfold[B](init: B)(f: (B, A) ⇒ B)(pred: (B) ⇒ Boolean): Dist[B]

  29. def until(pred: (A) ⇒ Boolean): Dist[Seq[A]]

  30. final def zip[B](that: Dist[B]): Dist[(A, B)]

  31. def zipWith[B, C](that: Dist[B])(f: (A, B) ⇒ C): Dist[C]

Inherited from Any

Ungrouped