breeze.stats.distributions

Rand

object Rand extends RandBasis

Provides a number of random generators.

Linear Supertypes
RandBasis, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Rand
  2. RandBasis
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. def always[T](t: T): Rand[T]

    The trivial random generator: always returns the argument

    The trivial random generator: always returns the argument

    Definition Classes
    RandBasis
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def choose[T](c: Seq[T]): Rand[T]

    Definition Classes
    RandBasis
  9. def choose[T](c: Iterable[T]): Rand[T]

    Chooses an element from a collection.

    Chooses an element from a collection.

    Definition Classes
    RandBasis
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fromBody[T](f: ⇒ T): Rand[T]

    Simply reevaluate the body every time get is called

    Simply reevaluate the body every time get is called

    Definition Classes
    RandBasis
  15. def gaussian(m: Double, s: Double): Rand[Double]

    Samples a gaussian with m mean and s std

    Samples a gaussian with m mean and s std

    Definition Classes
    RandBasis
  16. val gaussian: Rand[Double]

    Samples a gaussian with 0 mean and 1 std

    Samples a gaussian with 0 mean and 1 std

    Definition Classes
    RandBasis
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def permutation(n: Int): Rand[IndexedSeq[Int]]

    Implements the Knuth shuffle of numbers from 0 to n.

    Implements the Knuth shuffle of numbers from 0 to n.

    Definition Classes
    RandBasis
  24. def promote[T1, T2, T3, T4](t: (Rand[T1], Rand[T2], Rand[T3], Rand[T4])): Rand[(T1, T2, T3, T4)]

    Definition Classes
    RandBasis
  25. def promote[T1, T2, T3](t: (Rand[T1], Rand[T2], Rand[T3])): Rand[(T1, T2, T3)]

    Definition Classes
    RandBasis
  26. def promote[T1, T2](t: (Rand[T1], Rand[T2])): Rand[(T1, T2)]

    Definition Classes
    RandBasis
  27. def promote[U](col: Seq[Rand[U]]): Rand[Seq[U]]

    Convert an Seq of Rand[T] into a Rand[Seq[T]]

    Convert an Seq of Rand[T] into a Rand[Seq[T]]

    Definition Classes
    RandBasis
  28. def promote[T, CC[X] <: Traversable[X] with TraversableLike[X, CC[X]]](col: CC[Rand[T]])(implicit cbf: CanBuildFrom[CC[Rand[T]], T, CC[T]]): Rand[CC[T]]

    Convert a Collection of Rand[T] into a Rand[Collection[T]]

    Convert a Collection of Rand[T] into a Rand[Collection[T]]

    Definition Classes
    RandBasis
  29. def randInt(n: Int, m: Int): Rand[Int]

    Uniformly samples an integer in [n,m)

    Uniformly samples an integer in [n,m)

    Definition Classes
    RandBasis
  30. def randInt(n: Int): Rand[Int]

    Uniformly samples an integer in [0,n)

    Uniformly samples an integer in [0,n)

    Definition Classes
    RandBasis
  31. val randInt: Rand[Int]

    Uniformly samples an integer in [0,MAX_INT]

    Uniformly samples an integer in [0,MAX_INT]

    Definition Classes
    RandBasis
  32. def subsetsOfSize[T](set: IndexedSeq[T], n: Int): Rand[IndexedSeq[T]]

    Knuth shuffle of a subset of size n from a set

    Knuth shuffle of a subset of size n from a set

    Definition Classes
    RandBasis
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. val uniform: Rand[Double]

    Uniformly samples in [0,1]

    Uniformly samples in [0,1]

    Definition Classes
    RandBasis
  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RandBasis

Inherited from AnyRef

Inherited from Any

Ungrouped