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

    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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val adjacentFactors: List[Factor[Double]]
    Definition Classes
    DoubleWeightBlockSampler
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val block: Block
    Definition Classes
    BlockSampler
  7. val blockInfo: BlockInfo
    Definition Classes
    BlockSampler
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def computeSamplingFactor(currentSamples: Map[Variable[_], Int]): Factor[Double]
    Definition Classes
    SimpleBlockSampler
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  14. def getSamplingFactor(currentSamples: Map[Variable[_], Int]): Factor[Double]

    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
    Definition Classes
    AnyRef → Any
  16. val indexMap: Map[Variable[_], Int]
    Definition Classes
    SimpleBlockSampler
  17. val indices: Indices
    Definition Classes
    SimpleBlockSampler
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def normalizeFactor(factor: Factor[Double]): Factor[Double]

    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
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  23. def sample(currentSamples: Map[Variable[_], Int]): Unit

    Sample this block once

    Sample this block once

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

    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
    Definition Classes
    SimpleBlockSampler
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SimpleBlockSampler

Inherited from BlockSampler

Inherited from AnyRef

Inherited from Any

Ungrouped