package factors
 Alphabetic
 Public
 All
Type Members

trait
BasicFactor
[T] extends Factor[T]
Trait for a common implementation of Factors.
Trait for a common implementation of Factors. BasicFactor is still a trait because it does not yet define the underlying data store of the factor
A factor is associated with a set of variables and specifies a value for every combination of assignments to those variables. Factors are parameterized by the types of values they contain.
 case class BooleanSemiring () extends Semiring[Boolean] with Product with Serializable

case class
BoundsSumProductSemiring
() extends DivideableSemiRing[(Double, Double)] with Product with Serializable
Semiring for computing sums and products with lower and upper bounds.

class
ConditionalSelector
[T] extends DenseFactor[T]
ConditionalSelector Factor.
ConditionalSelector Factor. A conditional selector factor is associated chain elements and represents the relationship between parent elements and outcome elements. It is a special form of sparse factor where the default element is not 0 but 1 (don't care) which is the most frequent in this type of factor.

class
ConstraintFactor
[T] extends DenseFactor[T]
Constraint Factor.
Constraint Factor. A factor is associated with a set of variables and specifies a value for every combination of assignments to those variables. Factors are parameterized by the types of values they contain.
This factor is used to model constraints on elements.

class
DenseFactor
[T] extends BasicFactor[T]
Dense implementation of BasicFactor using an Array for storage
Dense implementation of BasicFactor using an Array for storage
Factors are parameterized by the type of the Variables they contain and contain a semiring that defines the mathematical operation to be performed on the values Parent variables are distinguished from the output variable.
 trait DivideableSemiRing [T] extends Semiring[T]

class
ElementVariable
[T] extends Variable[T]
Variables generated from elements.

trait
Factor
[T] extends AnyRef
Definition of Factor
Definition of Factor
A factor is associated with a set of variables and specifies a value for every combination of assignments to those variables.
Factors are parameterized by the type of the Variables they contain and contain a semiring that defines the mathematical operation to be performed on the values Parent variables are distinguished from the output variable.
Refactored by
 class Indices extends Iterable[List[Int]]
 class InternalChainVariable [U] extends InternalVariable[U]

class
InternalVariable
[T] extends Variable[T]
Variables that are internal to Factors.
Variables that are internal to Factors.
This is the same as a temporary variable, but is more explicitly identified
 trait LogConvertibleSemiRing [T] extends DivideableSemiRing[T]

case class
LogMaxProductSemiring
() extends DivideableSemiRing[Double] with LogConvertibleSemiRing[Double] with Product with Serializable
Semiring for computing maxs and products with log probabilities.

case class
LogSumProductSemiring
() extends DivideableSemiRing[Double] with LogConvertibleSemiRing[Double] with Product with Serializable
Semiring for computing sums and products with log probabilities.
 case class MaxProductSemiring () extends DivideableSemiRing[Double] with LogConvertibleSemiRing[Double] with Product with Serializable

class
ParameterizedVariable
[T] extends ElementVariable[T]
Variables generated from parameterized elements

trait
Semiring
[T] extends AnyRef
Operations in factored algorithms are defined by a semiring algebraic structure.
Operations in factored algorithms are defined by a semiring algebraic structure. Each semiring defines a product and sum operation, and a value for zero and one which satisfy a set of properties. Different semirings are appropriate for certain algorithms and data types.

class
SparseFactor
[T] extends BasicFactor[T]
Sparse implementation of BasicFactor backed by a Map storage
Sparse implementation of BasicFactor backed by a Map storage
Factors are parameterized by the type of the Variables they contain and contain a semiring that defines the mathematical operation to be performed on the values Parent variables are distinguished from the output variable.
This implementation stores only nondefault (nonzero) elements and supplies special sum and product methods to account for the missing values.

class
SufficientStatisticsSemiring
extends Semiring[(Double, Map[Parameter[_], Seq[Double]])]
Sum and product operations defined for sufficient statistics.
Sum and product operations defined for sufficient statistics. Statistics consist of a probability and counts of the number of times various values have been seen.
 case class SumProductSemiring () extends DivideableSemiRing[Double] with LogConvertibleSemiRing[Double] with Product with Serializable
 case class SumProductUtilitySemiring () extends DivideableSemiRing[(Double, Double)] with Product with Serializable

class
Variable
[T] extends AnyRef
Variables that appear in factors.