Trait

com.cra.figaro.algorithm.factored.gibbs

DoubleWeight

Related Doc: package gibbs

Permalink

trait DoubleWeight extends SimpleBlockSampler

Specialized sampling for continuous (i.e. of type Double) elements in Chains. This differs from the default sampler in that it can override the zero probability states in ConditionalSelector factors. The idea here is that we allow a technically inconsistent state according to the factors when the value of the Chain and result element are close. This is needed for compound continuous elements because sampling will always produce disjoint ranges for each result element of the Chain, which creates determinism issues with the way we currently block variables. This solution has not been fully tested for accuracy of results.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DoubleWeight
  2. SimpleBlockSampler
  3. BlockSampler
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def logWeight(chainValue: Double, resultValue: Double): Double

    Permalink

    Function with which to assign weights in place of -Infinity.

    Function with which to assign weights in place of -Infinity. It is assumed that if chainValue == resultValue, the result is 0.0. Observe that setting this function to:

    if(chainValue == resultValue) 0.0 else Double.NegativeInfinity

    has the same effect as not using the DoubleWeight trait at all.

Concrete 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. val adjacentFactors: List[Factor[Double]]

    Permalink
    Definition Classes
    DoubleWeightBlockSampler
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val block: Block

    Permalink
    Definition Classes
    BlockSampler
  7. val blockInfo: BlockInfo

    Permalink

    The pair containing the variables to sample and adjacent factors.

    The pair containing the variables to sample and adjacent factors.

    Definition Classes
    BlockSampler
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def computeSamplingFactor(currentSamples: Map[Variable[_], Int]): Factor[Double]

    Permalink
    Definition Classes
    SimpleBlockSampler
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getSamplingFactor(currentSamples: Map[Variable[_], Int]): Factor[Double]

    Permalink

    Get the factor from which to sample this block Returns a non-logarithmic factor

    Get the factor from which to sample this block Returns a non-logarithmic factor

    Definition Classes
    SimpleBlockSamplerBlockSampler
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. val indexMap: Map[Variable[_], Int]

    Permalink
    Definition Classes
    SimpleBlockSampler
  17. val indices: Indices

    Permalink
    Definition Classes
    SimpleBlockSampler
  18. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  20. def normalizeFactor(factor: Factor[Double]): Factor[Double]

    Permalink

    Normalize a factor so its weights sum to 1 Takes a logarithmic factor and returns a non-logarithmic factor

    Normalize a factor so its weights sum to 1 Takes a logarithmic factor and returns a non-logarithmic factor

    Definition Classes
    SimpleBlockSampler
  21. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def sample(currentSamples: Map[Variable[_], Int]): Unit

    Permalink

    Sample this block once

    Sample this block once

    Definition Classes
    BlockSampler
  24. def sampleFactor(factor: Factor[Double]): List[Int]

    Permalink

    Select a set of indices in the factor according to the weights in the factor Works on a non-logarithmic factor

    Select a set of indices in the factor according to the weights in the factor Works on a non-logarithmic factor

    Definition Classes
    BlockSampler
  25. val semiring: LogSumProductSemiring

    Permalink
    Definition Classes
    SimpleBlockSampler
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

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

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

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

Inherited from SimpleBlockSampler

Inherited from BlockSampler

Inherited from AnyRef

Inherited from Any

Ungrouped