Object

com.cra.figaro.algorithm.factored.factors.factory

Factory

Related Doc: package factory

Permalink

object Factory

Methods for creating probabilistic factors associated with elements.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Factory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def concreteFactors[T](cc: ComponentCollection, elem: Element[T], parameterized: Boolean): List[Factor[Double]]

    Permalink

    Invokes Factor constructors for a standard set of Elements.

    Invokes Factor constructors for a standard set of Elements. This method uses various secondary factories.

  7. def defaultFactor[T](parents: List[Variable[_]], children: List[Variable[_]], _semiring: Semiring[T] = ...)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): DenseFactor[T]

    Permalink

    Create a DenseFactor from the supplied parent and children variables

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getVariable[T](cc: ComponentCollection, element: Element[T]): Variable[T]

    Permalink

    Get the variable associated with the given element in the given component collection.

    Get the variable associated with the given element in the given component collection. If the element does not exist in the component collection, an intermediate variable is created whose range is { Star }.

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def makeConditionalSelector[T, U](pairVar: Variable[List[Extended[_]]], parentXVal: Extended[T], outcomeVar: Variable[U], choices: Set[U])(implicit mapper: PointMapper[U]): Factor[Double]

    Permalink

    Make a conditional selector factor used in the decomposition of chain and other elements.

    Make a conditional selector factor used in the decomposition of chain and other elements. A chain defines a factor over the parent element, each of the possible result elements of the chain, and the overall chain element. This can produce a very large factor when there are many result elements. This is solved by decomposing the chain factor into a product of factors, each of which contains the parent element, one of the result elements, and the overall chain element.

  16. def makeDependentFactor(cc: ComponentCollection, parentUniverse: Universe, dependentUniverse: Universe, probEvidenceComputer: () ⇒ Double): Factor[Double]

    Permalink

    Create the probabilistic factor encoding the probability of evidence in the dependent universe as a function of the values of variables in the parent universe.

    Create the probabilistic factor encoding the probability of evidence in the dependent universe as a function of the values of variables in the parent universe. The third argument is the the function to use for computing probability of evidence in the dependent universe. It is assumed that the definition of this function will already contain the right evidence.

  17. def makeFactors[T](cc: ComponentCollection, elem: Element[T], parameterized: Boolean): List[Factor[Double]]

    Permalink

    Make the non-constraint factors corresponding to the given element in the component collection.

    Make the non-constraint factors corresponding to the given element in the component collection.

    parameterized

    If true, parameterized elements are assumed to be equal to their previously computed MAP value. If false, they are treated like any other element.

  18. def makeFactorsForElement[Value](elem: Element[_], upper: Boolean = false, parameterized: Boolean = false): List[Factor[Double]]

    Permalink

    Make factors for a particular element.

    Make factors for a particular element. This function wraps the SFI method of creating factors using component collections

  19. def makeTupleVarAndFactor(cc: ComponentCollection, chain: Option[Chain[_, _]], inputs: Variable[_]*): (Variable[List[Extended[_]]], Factor[Double])

    Permalink

    Given a sequence of variables, create a new variable representing the tuple of the inputs and create the factor mapping the inputs to their tuple.

    Given a sequence of variables, create a new variable representing the tuple of the inputs and create the factor mapping the inputs to their tuple.

    inputs

    the variables to be formed into a tuple

  20. def makeVariable[T](cc: ComponentCollection, valueSet: ValueSet[T], chain: Chain[_, _]): Variable[T]

    Permalink
  21. def makeVariable[T](cc: ComponentCollection, valueSet: ValueSet[T]): Variable[T]

    Permalink

    Create an intermediate variable in the given component collection with the given value set.

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def parameterCheck(elem: Element[_], parameterized: Boolean): Boolean

    Permalink
  26. def replaceVariable[T](factor: Factor[Double], oldVariable: Variable[T], newVariable: Variable[T]): Factor[Double]

    Permalink

    Create a new factor in which one variable is replaced with another.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def unit[T](semiring: Semiring[T])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Factor[T]

    Permalink

    The mutliplicative identity factor.

  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped