cc.factorie.variable

ItemizedVar

trait ItemizedVar[This <: ItemizedVar[This]] extends CategoricalVar[This] with VarWithConstantValue

A variable put into an index, and whose categorical value is the variable itself. For example, you can create 10 'Person extends ItemizedVar[Person]' objects, and upon creation each will be mapped to a unique integer 0..9. p1 = new Person; p1.index == 0; p1.categoryValue == p1.

Self Type
This
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ItemizedVar
  2. VarWithConstantValue
  3. CategoricalVar
  4. CategoricalVectorVar
  5. DiscreteVar
  6. VarWithDomain
  7. VectorVar
  8. TensorVar
  9. Var
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Value <: CategoricalValue[This]

    Definition Classes
    CategoricalVarDiscreteVarVectorVarTensorVarVar

Abstract Value Members

  1. abstract def domain: CategoricalDomain[This]

    Abstract method to return the domain of this variable.

    Abstract method to return the domain of this variable.

    Definition Classes
    ItemizedVarCategoricalVarCategoricalVectorVarDiscreteVarVarWithDomainVectorVar
  2. abstract def value: This.Value

    Abstract method to return the value of this variable.

    Abstract method to return the value of this variable.

    Definition Classes
    CategoricalVarDiscreteVarVectorVarTensorVarVar

Concrete Value Members

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

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

    Definition Classes
    Any
  3. def !==(other: Var): Boolean

    Definition Classes
    Var
  4. final def ##(): Int

    Definition Classes
    AnyRef → Any
  5. def ++=(elts: Iterable[This]): Unit

    Definition Classes
    CategoricalVectorVar
  6. def +=(elt: This): Unit

    Definition Classes
    CategoricalVectorVar
  7. def +=(elt: This, incr: Double): Unit

    Definition Classes
    CategoricalVectorVar
  8. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  10. def ===(other: Var): Boolean

    Value comparisons (as distinct from variable pointer equality)

    Value comparisons (as distinct from variable pointer equality)

    Definition Classes
    Var
  11. def activeCategories: Seq[This]

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

    Definition Classes
    Any
  13. def caseFactorProportions(model: model.Model): Proportions1

    Return the distribution over values of this variable given the model and given that all other variables' values are fixed.

    Return the distribution over values of this variable given the model and given that all other variables' values are fixed.

    Definition Classes
    DiscreteVar
  14. def categoryValue: This

    Definition Classes
    ItemizedVarCategoricalVar
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def contains(index: Int): Boolean

    Definition Classes
    VectorVar
  17. def doWithIndexSafely(elt: This, v: Double, update: Boolean): Unit

    Attributes
    protected
    Definition Classes
    CategoricalVectorVar
  18. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. def intValue: Int

    Definition Classes
    DiscreteVar
  24. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  28. def printName: String

    Definition Classes
    Var
  29. def proportions(model: model.Model): Proportions1

    Return the distribution over values of this variable given the model and given that all other variables' values are fixed.

    Return the distribution over values of this variable given the model and given that all other variables' values are fixed.

    Definition Classes
    DiscreteVar
  30. def proportions(factors: Iterable[model.Factor]): Proportions1

    Return the distribution over values of this variable given some factors (which presumably neighbor this DiscreteVar) and given that all other variables' values are fixed.

    Return the distribution over values of this variable given some factors (which presumably neighbor this DiscreteVar) and given that all other variables' values are fixed.

    Definition Classes
    DiscreteVar
  31. def skipNonCategories: Boolean

    If false, then when += is called with a value (or index) outside the Domain, an error is thrown.

    If false, then when += is called with a value (or index) outside the Domain, an error is thrown. If true, then no error is thrown, and request to add the outside-Domain value is simply ignored.

    Definition Classes
    CategoricalVectorVar
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    CategoricalVarDiscreteVarVar → AnyRef → Any
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from VarWithConstantValue

Inherited from CategoricalVar[This]

Inherited from CategoricalVectorVar[This]

Inherited from DiscreteVar

Inherited from VarWithDomain

Inherited from VectorVar

Inherited from TensorVar

Inherited from Var

Inherited from AnyRef

Inherited from Any

Ungrouped