dk.bayes.model.factor

LinearGaussianFactor

case class LinearGaussianFactor(parentVarId: Int, varId: Int, a: Double, b: Double, v: Double, evidence: Option[Double] = scala.None) extends DoubleFactor with Product with Serializable

This class represents a factor for a Linear Gaussian Distribution. N(ax + b,v)

parentVarId
varId
a

Mean term of N(ax + b,v)

b

Mean term of N(ax + b,v)

v

Variance term of N(ax + b,v)

Linear Supertypes
Serializable, Serializable, Product, Equals, DoubleFactor, Factor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LinearGaussianFactor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. DoubleFactor
  7. Factor
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LinearGaussianFactor(parentVarId: Int, varId: Int, a: Double, b: Double, v: Double, evidence: Option[Double] = scala.None)

    parentVarId
    varId
    a

    Mean term of N(ax + b,v)

    b

    Mean term of N(ax + b,v)

    v

    Variance term of N(ax + b,v)

Type Members

  1. type FACTOR_TYPE = DoubleFactor

    Definition Classes
    DoubleFactorFactor

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *(factor: Factor): BivariateGaussianFactor

    Returns the product of this and that factor.

    Returns the product of this and that factor.

    Definition Classes
    LinearGaussianFactorFactor
  5. def /(factor: Factor): FACTOR_TYPE

    Divides this factor by that factor.

    Divides this factor by that factor.

    Definition Classes
    Factor
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. val a: Double

    Mean term of N(ax + b,v)

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. val b: Double

    Mean term of N(ax + b,v)

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(that: Factor, threshold: Double): Boolean

    Returns true if this and that factors are the same with a tolerance level specified by the threshold parameter.

    Returns true if this and that factors are the same with a tolerance level specified by the threshold parameter.

    Definition Classes
    Factor
  14. val evidence: Option[Double]

  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. def getValue(assignment: (Int, AnyVal)*): Double

    Returns the factor value for a given assignment to all factor variables.

    Returns the factor value for a given assignment to all factor variables.

    assignment

    Assignment to all factor variables (varId,varValue)

    Definition Classes
    Factor
  18. def getVariableIds(): Seq[Int]

    Returns factor variable identifiers.

    Returns factor variable identifiers.

    Definition Classes
    LinearGaussianFactorFactor
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def marginal(varId: Int): GaussianFactor

    Returns marginal factor for a given variable id.

    Returns marginal factor for a given variable id.

    Definition Classes
    LinearGaussianFactorFactor
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def outgoingMessages(factor1: Factor, factor2: Factor): (GaussianFactor, GaussianFactor)

    Returns outgoing messages to factor variables.

    Returns outgoing messages to factor variables. Tuple2[var1 msg, var2 msg]

    Definition Classes
    LinearGaussianFactorDoubleFactor
  25. val parentVarId: Int

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

    Definition Classes
    AnyRef
  27. val v: Double

    Variance term of N(ax + b,v)

  28. val varId: Int

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def withEvidence(varId: Int, varValue: AnyVal): FACTOR_TYPE

    Returns new factor with a given evidence.

    Returns new factor with a given evidence.

    varId

    Variable id

    varValue

    Variable value

    Definition Classes
    Factor

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DoubleFactor

Inherited from Factor

Inherited from AnyRef

Inherited from Any

Ungrouped