Packages

t

cardano.discrete

DiscreteDistributions

trait DiscreteDistributions extends Distributions

This trait implements some standard discrete distributions.

Self Type
DiscreteDistributions
Linear Supertypes
Distributions, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DiscreteDistributions
  2. Distributions
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def randomGenerator: RandomGenerator
    Attributes
    protected
    Definition Classes
    Distributions

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def choose[A](distribution: Seq[(A, Prob)])(implicit ev: (DenseVector[Double]) ⇒ QuasiTensor[Int, Double], sumImpl: breeze.linalg.sum.Impl[DenseVector[Double], Double]): Stochastic[A]

    Creates a random variable that samples from the discrete distribution given as input.

    Creates a random variable that samples from the discrete distribution given as input.

    A

    the concrete type of the random variable

    distribution

    a discrete distribution given as a (finite) sequence of (value, probability) pairs

    ev

    Breeze internals

    sumImpl

    Breeze internals

    returns

    a random variable that samples from the discrete distribution given as input

  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def coin: Stochastic[Boolean]

    See coin.

  8. def coin(p: Prob = 0.5): Stochastic[Boolean]

    Creates a Bernoulli random variable.

    Creates a Bernoulli random variable.

    p

    the probability of a positive outcome

    returns

    a Bernoulli random variable

  9. def constant[A](a: A): Stochastic[A]

    Creates a random variable that is constant.

    Creates a random variable that is constant.

    A

    the concrete type of this random variable

    a

    the value of this constant random variable

    returns

    a constant random variable

    Definition Classes
    Distributions
  10. def discreteUniform(n: Int): Stochastic[Int]

    Creates a random variable that samples uniformly from 0 to n excluded.

    Creates a random variable that samples uniformly from 0 to n excluded.

    n

    the number of values that the random variables can take

    returns

    a random variable that samples uniformly from 0 to n excluded

  11. def discreteUniform[A](values: Seq[A]): Stochastic[A]

    Creates a random variable that samples uniformly from the values given as input.

    Creates a random variable that samples uniformly from the values given as input.

    A

    the concrete type of the random variable

    values

    values from which to sample

    returns

    a random variable that samples uniformly from the values given as input

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromMass(mass: Seq[Prob]): Stochastic[Int]

    Creates a random variable that samples from the first natural numbers with probabilities given by mass.

    Creates a random variable that samples from the first natural numbers with probabilities given by mass.

    mass

    a discrete distribution on the first natural numbers given as probabilities

    returns

    a random variable that samples from the first natural numbers with probabilities given by mass

  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Distributions

Inherited from AnyRef

Inherited from Any

Ungrouped