DistCRng

trait DistCRng[A] extends DistCSemiring[A] with CommutativeRng[Dist[A]]
trait DistCRing[A]
trait DistGCDRing[A]
trait DistField[A]

Value members

Concrete methods

def negate(x: Dist[A]): Dist[A]

Inherited methods

def isZero(a: Dist[A])(implicit ev: Eq[Dist[A]]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
def minus(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
AdditiveGroup
def plus(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
DistCSemiring
def pow(a: Dist[A], n: Int): Dist[A]
@nowarn("msg=deprecated")
def sum(as: IterableOnce[Dist[A]]): Dist[A]

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: Dist[A], n: Int): Dist[A]
Definition Classes
Inherited from:
AdditiveGroup
def times(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
DistCSemiring
@nowarn("msg=deprecated")

Given a sequence of as, combine them and return the total.

Given a sequence of as, combine them and return the total.

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

Inherited from:
MultiplicativeSemigroup
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Dist[A]]): Option[Dist[A]]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: Dist[A]
Inherited from:
DistCSemiring

Implicits

Implicits

implicit def alg: CommutativeRng[A]