Class

com.cra.figaro.algorithm.structured

ComponentCollection

Related Doc: package structured

Permalink

class ComponentCollection extends AnyRef

A collection of problem components. This data structure manages all the components being used in the solution of a top-level problem and its nested subproblems. Every element exists in at most one component. To create a new component for an element, you need to say what problem it belongs to.

This class is intended for models that do not use chain function memoization recursively; for this purpose, use RecursiveComponentCollection.

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

Instance Constructors

  1. new ComponentCollection()

    Permalink

Type Members

  1. type Expansion = Tuple2[Function1[_, Element[_]], _]

    Permalink

    An expansion is defined by a generative process (a function) that produces an element, and a parent value used as the argument to the function.

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. def apply[T](atomic: Atomic[T]): AtomicComponent[T]

    Permalink

    Get the component associated with this element in this collection.

    Get the component associated with this element in this collection. Throws an exception if the element is not associated with any component.

  5. def apply[T](makeArray: MakeArray[T]): MakeArrayComponent[T]

    Permalink

    Get the component associated with this element in this collection.

    Get the component associated with this element in this collection. Throws an exception if the element is not associated with any component.

  6. def apply[T](apply: Apply[T]): ApplyComponent[T]

    Permalink

    Get the component associated with this element in this collection.

    Get the component associated with this element in this collection. Throws an exception if the element is not associated with any component.

  7. def apply[P, T](chain: Chain[P, T]): ChainComponent[P, T]

    Permalink

    Get the component associated with this element in this collection.

    Get the component associated with this element in this collection. Throws an exception if the element is not associated with any component.

  8. def apply[T](element: Element[T]): ProblemComponent[T]

    Permalink

    Get the component associated with this element in this collection.

    Get the component associated with this element in this collection. Throws an exception if the element is not associated with any component.

  9. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val components: Map[Element[_], ProblemComponent[_]]

    Permalink

    All the components in the collection, each associated with an element.

  12. def contains[T](element: Element[T]): Boolean

    Permalink

    Does the element have a component in this collection?

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. var intermediates: Set[Variable[_]]

    Permalink

    Intermediate variables defined during the construction of factors.

    Intermediate variables defined during the construction of factors. These are not associated with any element or component and are to be eliminated wherever they appear.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. var rangingStrategy: RangingStrategy

    Permalink

    Ranging strategy for atomic components.

    Ranging strategy for atomic components. Initially uses the default non-lazy method that samples infinite atomics.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. var useSingleChainFactor: Boolean

    Permalink

    Indicates whether to create chain factors by decomposing the chain into several factors or a single factor This defaults to false since all the existing code a decomposition

  27. val variableParents: Map[Variable[_], Set[Variable[_]]]

    Permalink

    Maps a variable to the parents needed for creating blocks using Gibbs sampling.

    Maps a variable to the parents needed for creating blocks using Gibbs sampling. TODO: test if this variable causes memory leaks.

  28. val variableToComponent: Map[Variable[_], ProblemComponent[_]]

    Permalink

    Returns the problem component associated with a particular variable.

    Returns the problem component associated with a particular variable. Not valid for intermediate variables.

  29. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped