DistCRig

trait DistCRig[A] extends DistCSemiring[A] with CommutativeRig[Dist[A]]

Value members

Concrete methods

def one: Dist[A]

Inherited methods

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

Tests if a is one.

Tests if a is one.

Inherited from:
MultiplicativeMonoid
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 plus(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
DistCSemiring
override def pow(a: Dist[A], n: Int): Dist[A]
@nowarn("msg=deprecated")
def product(as: IterableOnce[Dist[A]]): Dist[A]

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
@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:
AdditiveMonoid
def times(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
DistCSemiring
@nowarn("msg=deprecated")
override def tryProduct(as: IterableOnce[Dist[A]]): Option[Dist[A]]
@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: CommutativeRig[A]