Dist

schrodinger.kernel.testkit.Dist
See theDist companion object
final case class Dist[P, A](support: Map[A, P])

Attributes

Note:

The implementation relies on universal equals and hashCode of A for performance. Results will be incorrect otherwise.

Companion:
object
Source:
Dist.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def expect(f: A => P)(using P: Rig[P]): P

Attributes

Source:
Dist.scala
def flatMap[B](f: A => Dist[P, B])(using P: Rig[P], eq: Eq[P]): Dist[P, B]

Attributes

Source:
Dist.scala
def map[B](f: A => B)(using P: AdditiveMonoid[P]): Dist[P, B]

Attributes

Source:
Dist.scala
def mean(using ev: A <:< P, P: Rig[P]): P

Attributes

Source:
Dist.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product