cc.factorie.directed.DirichletMixture

Factor

case class Factor(_1: ProportionsVariable, _2: Mixture[MassesVariable], _3: variable.DiscreteVariable) extends DirichletMixture.Factor with MixtureFactor with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Factor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MixtureFactor
  7. Factor
  8. DirectedFactorWithStatistics3
  9. DirectedFactor
  10. TupleFactorWithStatistics3
  11. Factor3
  12. Factor
  13. Ordered
  14. Comparable
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Factor(_1: ProportionsVariable, _2: Mixture[MassesVariable], _3: variable.DiscreteVariable)

Type Members

  1. type ChildType = DirichletMixture.C

  2. type NeighborType1 = DirichletMixture.C

    Definition Classes
    Factor3
  3. type NeighborType2 = DirichletMixture.P1

    Definition Classes
    Factor3
  4. type NeighborType3 = DirichletMixture.P2

    Definition Classes
    Factor3
  5. type StatisticsType = (Value, Value, Value)

    Definition Classes
    TupleFactorWithStatistics3Factor

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def <(that: model.Factor): Boolean

    Definition Classes
    Ordered
  4. def <=(that: model.Factor): Boolean

    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def >(that: model.Factor): Boolean

    Definition Classes
    Ordered
  7. def >=(that: model.Factor): Boolean

    Definition Classes
    Ordered
  8. val _1: ProportionsVariable

  9. val _2: Mixture[MassesVariable]

  10. val _3: variable.DiscreteVariable

  11. var _hashCode: Int

    Definition Classes
    Factor
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def assignmentScore(a: variable.Assignment): Double

    The ability to score a Values object is now removed, and this is its closest alternative.

    The ability to score a Values object is now removed, and this is its closest alternative.

    Definition Classes
    Factor3Factor
  14. def assignmentScoreAndStatistics(a: variable.Assignment): (Double, StatisticsType)

    Definition Classes
    Factor
  15. final def assignmentStatistics(a: variable.Assignment): StatisticsType

    Return this Factor's sufficient statistics for the values in the Assignment.

    Return this Factor's sufficient statistics for the values in the Assignment.

    Definition Classes
    Factor3Factor
  16. def child: DirichletMixture.C

  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def compare(that: model.Factor): Int

    Return an object that can iterate over all value assignments to the neighbors of this Factor

    Return an object that can iterate over all value assignments to the neighbors of this Factor

    Definition Classes
    Factor → Ordered
  19. def compareTo(that: model.Factor): Int

    Definition Classes
    Ordered → Comparable
  20. def currentAssignment: Assignment3[DirichletMixture.C, DirichletMixture.P1, DirichletMixture.P2]

    Return a record of the current values of this Factor's neighbors.

    Return a record of the current values of this Factor's neighbors.

    Definition Classes
    Factor3Factor
  21. def currentScore: Double

    This factor's contribution to the unnormalized log-probability of the current possible world.

    This factor's contribution to the unnormalized log-probability of the current possible world.

    Definition Classes
    Factor3Factor
  22. def currentScoreAndStatistics: (Double, StatisticsType)

    Return the score and statistics of the current neighbor values; this method enables special cases in which it is more efficient to calculate them together.

    Return the score and statistics of the current neighbor values; this method enables special cases in which it is more efficient to calculate them together.

    Definition Classes
    Factor3Factor
  23. def currentStatistics: StatisticsType

    Return this Factor's sufficient statistics of the current values of the Factor's neighbors.

    Return this Factor's sufficient statistics of the current values of the Factor's neighbors.

    Definition Classes
    Factor3Factor
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equalityPrerequisite: AnyRef

    In order to two Factors to satisfy "equals", the value returned by this method for each Factor must by "eq".

    In order to two Factors to satisfy "equals", the value returned by this method for each Factor must by "eq". This method is overridden in Family to deal with Factors that are inner classes.

    Definition Classes
    Factor
  26. def equals(other: Any): Boolean

    Definition Classes
    Factor → AnyRef → Any
  27. def factorName: String

    Definition Classes
    Factor
  28. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def gate: variable.DiscreteVariable

    Definition Classes
    FactorMixtureFactor
  30. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  31. def hasLimitedDiscreteValues1: Boolean

    Definition Classes
    Factor3
  32. def hasLimitedDiscreteValues12: Boolean

    Definition Classes
    Factor3
  33. def hasLimitedDiscreteValues123: Boolean

    Definition Classes
    Factor3
  34. def hashCode(): Int

    A hashCode matching the criteria in equals, using hashCode of the Factor's class and of the Factor's neighboring variables.

    A hashCode matching the criteria in equals, using hashCode of the Factor's class and of the Factor's neighboring variables.

    Definition Classes
    Factor → AnyRef → Any
  35. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  36. def limitedDiscreteValues1: SparseBinaryTensor1

    Definition Classes
    Factor3
  37. def limitedDiscreteValues12: SparseBinaryTensor2

    Definition Classes
    Factor3
  38. def limitedDiscreteValues123: SparseBinaryTensor3

    Definition Classes
    Factor3
  39. def logpr(v1: Value, v2: Value, v3: Value): Double

  40. def logpr: Double

    Definition Classes
    DirectedFactor
  41. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  44. def numVariables: Int

    The number of variables neighboring this factor.

    The number of variables neighboring this factor.

    Definition Classes
    Factor3Factor
  45. def parents: Seq[variable.Var]

  46. def pr(child: Proportions, mixture: Seq[Masses], z: DiscreteValue): Double

    Definition Classes
    FactorDirectedFactorWithStatistics3
  47. def pr: Double

  48. def prChoosing(child: Proportions, mixture: Seq[Masses], mixtureIndex: Int): Double

  49. def resetCollapsedChild(): Boolean

    Definition Classes
    DirectedFactor
  50. def sampledValue(mixture: Seq[Masses], z: DiscreteValue)(implicit random: Random): Proportions

    Definition Classes
    FactorDirectedFactorWithStatistics3
  51. def sampledValue(implicit random: Random): Value

  52. def sampledValueChoosing(mixture: Seq[Masses], mixtureIndex: Int)(implicit random: Random): Proportions

  53. def score(v1: Value, v2: Value, v3: Value): Double

    Definition Classes
    DirectedFactorWithStatistics3Factor3
  54. def scoreAndStatistics(v1: Value, v2: Value, v3: Value): (Double, StatisticsType)

    Definition Classes
    Factor3
  55. final def statistics(v1: Value, v2: Value, v3: Value): (Value, Value, Value)

    Definition Classes
    TupleFactorWithStatistics3Factor3
  56. final def statisticsAreValues: Boolean

    True iff the statistics are the values (without transformation), e.g.

    True iff the statistics are the values (without transformation), e.g. valuesStatistics simply returns its argument.

    Definition Classes
    TupleFactorWithStatistics3Factor
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  58. def toString(): String

    Definition Classes
    Factor → AnyRef → Any
  59. def touches(variable: variable.Var): Boolean

    Does this Factor have the given variable among its neighbors?

    Does this Factor have the given variable among its neighbors?

    Definition Classes
    Factor
  60. def touchesAny(variables: Iterable[variable.Var]): Boolean

    Does this Factor have any of the given variables among its neighbors?

    Does this Factor have any of the given variables among its neighbors?

    Definition Classes
    Factor
  61. def updateCollapsedChild(): Boolean

    Definition Classes
    DirectedFactor
  62. def updateCollapsedParents(weight: Double): Boolean

    Update sufficient statistics in collapsed parents, using current value of child, with weight.

    Update sufficient statistics in collapsed parents, using current value of child, with weight. Return false on failure.

    Definition Classes
    DirectedFactor
  63. def valuesScore(tensor: Tensor): Double

    Return the score for Factors whose values can be represented as a Tensor, otherwise throw an Error.

    Return the score for Factors whose values can be represented as a Tensor, otherwise throw an Error. For Factors/Family in which the Statistics are the values, this method simply calls statisticsScore(Tensor).

    Definition Classes
    Factor
  64. def valuesScore1(tensor1: Tensor, tensor2: Tensor, tensor3: Tensor): la.Tensor1

    Given the Tensor value of neighbors _2 and _3, return a Tensor1 containing the scores for each possible value neighbor _1, which must be a DiscreteVar.

    Given the Tensor value of neighbors _2 and _3, return a Tensor1 containing the scores for each possible value neighbor _1, which must be a DiscreteVar. Note that the returned Tensor may be sparse if this factor is set up for limited values iteration. If _1 is not a DiscreteVar then throws an Error.

    Definition Classes
    Factor3
  65. def valuesScore2(tensor1: Tensor, tensor2: Tensor, tensor3: Tensor): la.Tensor1

    Definition Classes
    Factor3
  66. def valuesScore3(tensor1: Tensor, tensor2: Tensor, tensor3: Tensor): la.Tensor1

    Definition Classes
    Factor3
  67. def valuesScoreAndStatistics(t: Tensor): (Double, Tensor)

    Definition Classes
    Factor
  68. def valuesStatistics(tensor: Tensor): Tensor

    Given a Tensor representation of the values, return a Tensor representation of the statistics.

    Given a Tensor representation of the values, return a Tensor representation of the statistics. We assume that if the values have Tensor representation that the StatisticsType does also. Note that (e.g. in BP) the Tensor may represent not just a single value for each neighbor, but a distribution over values

    Definition Classes
    Factor
  69. def variable(i: Int): variable.Var

    The Nth neighboring variable of this factor.

    The Nth neighboring variable of this factor.

    Definition Classes
    Factor3Factor
  70. def variables: IndexedSeq[variable.Var]

    Returns the collection of variables neighboring this factor.

    Returns the collection of variables neighboring this factor.

    Definition Classes
    Factor3Factor
  71. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MixtureFactor

Inherited from DirichletMixture.Factor

Inherited from DirectedFactor

Inherited from model.Factor

Inherited from Ordered[model.Factor]

Inherited from Comparable[model.Factor]

Inherited from AnyRef

Inherited from Any

Ungrouped