Trait

spire.random

DistRing

Related Doc: package random

Permalink

trait DistRing[A] extends DistRng[A] with Ring[Dist[A]]

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DistRing
  2. Ring
  3. Rig
  4. MultiplicativeMonoid
  5. DistRng
  6. Rng
  7. AdditiveAbGroup
  8. AdditiveCMonoid
  9. AdditiveCSemigroup
  10. AdditiveGroup
  11. DistSemiring
  12. Semiring
  13. MultiplicativeSemigroup
  14. AdditiveMonoid
  15. AdditiveSemigroup
  16. AnyRef
  17. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def alg: Ring[A]

    Permalink
    Definition Classes
    DistRingDistRngDistSemiring

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def additive: AbGroup[Dist[A]]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fromInt(n: Int): Dist[A]

    Permalink

    Defined to be equivalent to additive.sumn(one, n).

    Defined to be equivalent to additive.sumn(one, n). That is, n repeated summations of this ring's one, or -one if n is negative.

    Definition Classes
    Ring
  11. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  14. def isOne(a: Dist[A])(implicit ev: Eq[Dist[A]]): Boolean

    Permalink
    Definition Classes
    MultiplicativeMonoid
  15. def isZero(a: Dist[A])(implicit ev: Eq[Dist[A]]): Boolean

    Permalink

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  16. def minus(x: Dist[A], y: Dist[A]): Dist[A]

    Permalink
    Definition Classes
    AdditiveGroup
  17. def multiplicative: Monoid[Dist[A]]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def negate(x: Dist[A]): Dist[A]

    Permalink
    Definition Classes
    DistRngAdditiveGroup
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def one: Dist[A]

    Permalink
    Definition Classes
    DistRingMultiplicativeMonoid
  23. def plus(x: Dist[A], y: Dist[A]): Dist[A]

    Permalink
    Definition Classes
    DistSemiringAdditiveSemigroup
  24. def pow(a: Dist[A], n: Int): Dist[A]

    Permalink

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    Definition Classes
    RigSemiring
  25. def prod(as: TraversableOnce[Dist[A]]): Dist[A]

    Permalink

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    MultiplicativeMonoid
  26. def prodOption(as: TraversableOnce[Dist[A]]): Option[Dist[A]]

    Permalink

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    MultiplicativeSemigroup
  27. def prodn(a: Dist[A], n: Int): Dist[A]

    Permalink

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeMonoidMultiplicativeSemigroup
  28. def prodnAboveOne(a: Dist[A], n: Int): Dist[A]

    Permalink
    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  29. def sum(as: TraversableOnce[Dist[A]]): Dist[A]

    Permalink

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    AdditiveMonoid
  30. def sumOption(as: TraversableOnce[Dist[A]]): Option[Dist[A]]

    Permalink

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    AdditiveSemigroup
  31. def sumn(a: Dist[A], n: Int): Dist[A]

    Permalink

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  32. def sumnAboveOne(a: Dist[A], n: Int): Dist[A]

    Permalink
    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def times(x: Dist[A], y: Dist[A]): Dist[A]

    Permalink
    Definition Classes
    DistSemiringMultiplicativeSemigroup
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def zero: Dist[A]

    Permalink
    Definition Classes
    DistSemiringAdditiveMonoid

Inherited from Ring[Dist[A]]

Inherited from Rig[Dist[A]]

Inherited from MultiplicativeMonoid[Dist[A]]

Inherited from DistRng[A]

Inherited from Rng[Dist[A]]

Inherited from AdditiveAbGroup[Dist[A]]

Inherited from AdditiveCMonoid[Dist[A]]

Inherited from AdditiveCSemigroup[Dist[A]]

Inherited from AdditiveGroup[Dist[A]]

Inherited from DistSemiring[A]

Inherited from Semiring[Dist[A]]

Inherited from MultiplicativeSemigroup[Dist[A]]

Inherited from AdditiveMonoid[Dist[A]]

Inherited from AdditiveSemigroup[Dist[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped