package probability
- Alphabetic
- Public
- Protected
Package Members
- package datastructures
Type Members
- case class Conditional1[A, B](value: A, condition: B) extends Product with Serializable
- case class Conditional2[A, B](value: A, prior: Distribution[B]) extends Product with Serializable
- case class ConditionalDistribution[A, B](domainV1: Set[A], domainV2: Set[B], distribution: Map[(A, B), Double]) extends Product with Serializable
Implements a generic conditional probability distribution for two variables:
Implements a generic conditional probability distribution for two variables:
pr(V1|V2)
. The probabilities are represented by Double for increased accuracy. pr(V1|V2) }}} The probabilities are represented by Double for increased accuracy.
- A
The type of variable 1.
- B
The type of variable 2.
- domainV1
The domain of variable 1
V1
- domainV2
The domain of variable 2
V2
- distribution
The probabilities for each value in the domain.
- case class Distribution[A](domain: Set[A], distribution: Map[A, Double]) extends Product with Serializable
Implements a generic probability distribution.
Implements a generic probability distribution. The probabilities are represented by Double for increased accuracy.
- A
The type of the domain.
- domain
The set of values that span this distribution.
- distribution
The probabilities for each value in the domain.
Value Members
- case object Distribution extends Product with Serializable
Factory for Distribution instances.
- object DistributionHelpers
Helpers for Distribution and ConditionalDistribution.
- object Implicits
Implicit functions for more concise syntax.