DistKind

it.grypho.scala.leonardo.probability.DistKind
See theDistKind companion enum
object DistKind

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
DistKind.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def arity(k: DistKind): Int

Number of parameters a family takes.

Number of parameters a family takes.

Attributes

def fromKeyword(s: String): Option[DistKind]

Looks a family up by its grammar keyword.

Looks a family up by its grammar keyword.

Attributes

def keyword(k: DistKind): String

The grammar keyword for a family.

The grammar keyword for a family.

Usually the lower-cased enum name, but ChiSquared is spelled chisq — and the difference matters: toString prints this, so an enum name that is not the keyword produces output that re-parses as something else entirely (chisquared(x) reads as chisquared * x). Same trap Query.ProbOf has.

Attributes