cc.factorie.directed

DirectedFactorWithStatistics2

abstract class DirectedFactorWithStatistics2[C <: variable.Var, P1 <: variable.Var] extends TupleFactorWithStatistics2[C, P1] with DirectedFactor

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DirectedFactorWithStatistics2
  2. DirectedFactor
  3. TupleFactorWithStatistics2
  4. Factor2
  5. Factor
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DirectedFactorWithStatistics2(_1: C, _2: P1)

Type Members

  1. type ChildType = C

  2. type NeighborType1 = C

    Definition Classes
    Factor2
  3. type NeighborType2 = P1

    Definition Classes
    Factor2
  4. type StatisticsType = (C.Value, P1.Value)

    Definition Classes
    TupleFactorWithStatistics2Factor

Abstract Value Members

  1. abstract def pr(v1: C.Value, v2: P1.Value): Double

  2. abstract def sampledValue(p1: P1.Value)(implicit random: Random): C.Value

Concrete 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 <(that: model.Factor): Boolean

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

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

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

    Definition Classes
    Any
  8. def >(that: model.Factor): Boolean

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

    Definition Classes
    Ordered
  10. val _1: C

  11. val _2: P1

  12. var _hashCode: Int

    Definition Classes
    Factor
  13. def addLimitedDiscreteCurrentValues1(): Unit

    Definition Classes
    Factor2
  14. def addLimitedDiscreteCurrentValues12(): Unit

    Definition Classes
    Factor2
  15. def addLimitedDiscreteValues1(i: Int): Unit

    Definition Classes
    Factor2
  16. def addLimitedDiscreteValues12(i: Int, j: Int): Unit

    Definition Classes
    Factor2
  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. 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
    Factor2Factor
  19. def assignmentScoreAndStatistics(a: variable.Assignment): (Double, (C.Value, P1.Value))

    Definition Classes
    Factor
  20. final def assignmentStatistics(a: variable.Assignment): (C.Value, P1.Value)

    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
    Factor2Factor
  21. def child: C

  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. 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
  24. def compareTo(that: model.Factor): Int

    Definition Classes
    Ordered → Comparable
  25. def currentAssignment: Assignment2[C, P1]

    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
    Factor2Factor
  26. 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
    Factor2Factor
  27. def currentScoreAndStatistics: (Double, (C.Value, P1.Value))

    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
    Factor2Factor
  28. def currentStatistics: (C.Value, P1.Value)

    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
    Factor2Factor
  29. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. 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
  31. def equals(other: Any): Boolean

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

    Definition Classes
    Factor
  33. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  35. def hasLimitedDiscreteValues1: Boolean

    Definition Classes
    Factor2
  36. def hasLimitedDiscreteValues12: Boolean

    Definition Classes
    Factor2
  37. def hashCode(): Int

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

    Definition Classes
    Any
  39. def limitedDiscreteValues1: SparseBinaryTensor1

    Definition Classes
    Factor2
  40. def limitedDiscreteValues12: SparseBinaryTensor2

    Definition Classes
    Factor2
  41. def logpr(v1: C.Value, v2: P1.Value): Double

  42. def logpr: Double

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

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

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

    Definition Classes
    AnyRef
  46. def numVariables: Int

    The number of variables neighboring this factor.

    The number of variables neighboring this factor.

    Definition Classes
    Factor2Factor
  47. def parents: Seq[P1]

  48. def pr: Double

  49. def resetCollapsedChild(): Boolean

    Definition Classes
    DirectedFactor
  50. def sampledValue(implicit random: Random): C.Value

  51. def score(v1: C.Value, v2: P1.Value): Double

    Definition Classes
    DirectedFactorWithStatistics2Factor2
  52. def scoreAndStatistics(v1: C.Value, v2: P1.Value): (Double, (C.Value, P1.Value))

    Definition Classes
    Factor2
  53. final def statistics(v1: C.Value, v2: P1.Value): (C.Value, P1.Value)

    Definition Classes
    TupleFactorWithStatistics2Factor2
  54. final def statisticsAreValues: Boolean

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

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

    Definition Classes
    TupleFactorWithStatistics2Factor
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. def toString(): String

    Definition Classes
    Factor → AnyRef → Any
  57. 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
  58. 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
  59. def updateCollapsedChild(): Boolean

    Definition Classes
    DirectedFactor
  60. 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
  61. 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
  62. def valuesScore1(tensor1: Tensor, tensor2: Tensor): la.Tensor1

    Given multiplicative factors on values of neighbor _1 (which allow for limited iteration), and given the Tensor value of neighbor _2, return a Tensor1 containing the scores for each possible value neighbor _1, which must be a DiscreteVar.

    Given multiplicative factors on values of neighbor _1 (which allow for limited iteration), and given the Tensor value of neighbor _2, 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
    Factor2
  63. def valuesScore2(tensor1: Tensor, tensor2: Tensor): la.Tensor1

    Definition Classes
    Factor2
  64. def valuesScoreAndStatistics(t: Tensor): (Double, Tensor)

    Definition Classes
    Factor
  65. 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
  66. def variable(i: Int): variable.Var

    The Nth neighboring variable of this factor.

    The Nth neighboring variable of this factor.

    Definition Classes
    Factor2Factor
  67. def variables: IndexedSeq[variable.Var]

    Returns the collection of variables neighboring this factor.

    Returns the collection of variables neighboring this factor.

    Definition Classes
    Factor2Factor
  68. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DirectedFactor

Inherited from TupleFactorWithStatistics2[C, P1]

Inherited from Factor2[C, P1]

Inherited from model.Factor

Inherited from Ordered[model.Factor]

Inherited from Comparable[model.Factor]

Inherited from AnyRef

Inherited from Any

Ungrouped