Packages

class StructuredLexicon extends Lexicon

A special type of Lexicon where signals and referents are represented by binary strings. Signal-referent relations are based on a measure of representational similarity.

Annotations
@SerialVersionUID()
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StructuredLexicon
  2. Lexicon
  3. Product
  4. Equals
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StructuredLexicon(vocabularyRepresentations: Vector[Vector[Boolean]], contextRepresentations: Vector[Vector[Boolean]], mappingFunction: StructuredMappingFunction, data: Vector[Double], mappingThreshold: Option[Double] = None)

    vocabularyRepresentations

    A vector containing binary string representations of the signals in the vocabulary.

    contextRepresentations

    A vector containing binary string representations of the referents in the context.

    mappingFunction

    A function that takes two binary string representations and computes the relationship between them.

    data

    A 1-dimensional vector representing the relations between the vocabulary and context.

    mappingThreshold

    Optionally, for binary lexicons this specifies that when mappingFunction >= mappingThreshold, there is a 1.0-value relationship or 0.0 otherwise.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to any2stringadd[StructuredLexicon] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (StructuredLexicon, B)
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to ArrowAssoc[StructuredLexicon] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def additiveBinaryMutation(additionRate: Double): Lexicon

    Returns a copy of this lexicon where, based on additionRate, a number of positive signal-referent relations of weight 1.0 will be added to the lexicon.

    Returns a copy of this lexicon where, based on additionRate, a number of positive signal-referent relations of weight 1.0 will be added to the lexicon.

    additionRate

    The ratio of 0-valued signal-referent mappings that will be converted to 1.0 (from 0 to 1).

    Definition Classes
    Lexicon
  7. def apply(i: Int, j: Int): Double

    Returns the relation value for signal i and referent j.

    Returns the relation value for signal i and referent j.

    i

    Index of the signal.

    j

    Index of the referent.

    Definition Classes
    Lexicon
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asymmetryWith(that: Lexicon, similarity: Double = 0): Double

    Returns the asymmetry between this lexicon and that lexicon.

    Returns the asymmetry between this lexicon and that lexicon. Asymmetry is computed relative to the similarity threshold, i.e., it is the mean number of signal-referent relations that are more than similarity-value apart.

    that

    The other lexicon against which asymmetry is computed.

    similarity

    Optional argument specifying the threshold within which a signal-referent relation is considered 'same'.

    returns

    The asymmetry between this and that.

    Definition Classes
    Lexicon
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. val contextRepresentations: Vector[Vector[Boolean]]
  12. val contextSize: Int
    Definition Classes
    Lexicon
  13. val data: Vector[Double]
    Definition Classes
    StructuredLexiconLexicon
  14. def dot(vector: Vector[Double]): Vector[Double]

    Computes the dot product between the graded lexicon and a vector of length contextSize.

    Computes the dot product between the graded lexicon and a vector of length contextSize.

    vector

    A vector of length contextSize.

    returns

    A vector of length vocabularySize with the dot product.

    Definition Classes
    Lexicon
    Exceptions thrown

    scala.IllegalArgumentException when vector.length is not equal to contextSize of this lexicon.

  15. def dotT(vector: Vector[Double]): Vector[Double]

    Computes the dot product between the transposed graded lexicon and a vector of vocabularySize.

    Computes the dot product between the transposed graded lexicon and a vector of vocabularySize.

    vector

    A vector of length vocabularySize.

    returns

    A vector of length contextSize with the dot product.

    Definition Classes
    Lexicon
    Exceptions thrown

    scala.IllegalArgumentException when vector.length is not equal to vocabularySize of this lexicon.

  16. def ensuring(cond: (StructuredLexicon) ⇒ Boolean, msg: ⇒ Any): StructuredLexicon
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to Ensuring[StructuredLexicon] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (StructuredLexicon) ⇒ Boolean): StructuredLexicon
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to Ensuring[StructuredLexicon] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): StructuredLexicon
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to Ensuring[StructuredLexicon] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): StructuredLexicon
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to Ensuring[StructuredLexicon] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to StringFormat[StructuredLexicon] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  23. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def getColumn(j: Int): Vector[Double]

    Returns the column for referent j, containing all mapping values between referent j and all signals.

    Returns the column for referent j, containing all mapping values between referent j and all signals. This function is of quadratic time complexity, use sparingly.

    Definition Classes
    Lexicon
  25. def getLexicon: Lexicon

    This function removed all information about the underlying representations in the structured lexicon.

    This function removed all information about the underlying representations in the structured lexicon.

    returns

    A default graded lexicon representation of the structured lexicon.

  26. def getRow(i: Int): Vector[Double]

    Returns the row for signal i, containing all mapping values between signal i and all referents.

    Returns the row for signal i, containing all mapping values between signal i and all referents.

    Definition Classes
    Lexicon
  27. def isConsistent: Boolean
    Definition Classes
    Lexicon
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. val listenerDefinition: (Lexicon, Int) ⇒ Lexicon
    Definition Classes
    Lexicon
  30. val mappingFunction: StructuredMappingFunction
  31. val mappingThreshold: Option[Double]
  32. def meanAmbiguity(threshold: Double = 1): Double

    Returns the mean ambiguity of this graded lexicon, where ambiguity is defined as the mean number of referents for which signals have a relation higher than the threshold.

    Returns the mean ambiguity of this graded lexicon, where ambiguity is defined as the mean number of referents for which signals have a relation higher than the threshold.

    threshold

    Optional parameter specifying the threshold within which a signal-referent relation is considered relevant.

    Definition Classes
    Lexicon
  33. def meanAndVarianceAmbiguity(threshold: Double = 1): (Double, Double)

    Returns a tuple containing the mean (._1) and variance (._2) ambiguity of this graded lexicon.

    Returns a tuple containing the mean (._1) and variance (._2) ambiguity of this graded lexicon. Ambiguity is defined as the mean number of referents for which signals have a relation higher than the threshold.

    threshold

    Optional parameter specifying the threshold within which a signal-referent relation is considered relevant.

    Definition Classes
    Lexicon
  34. def mixReferents(mixRate: Double): Lexicon

    Returns an immutable copy of this lexicon where, based on the swapRate, signal-referent relations are swapped around with across the mapping's central axis.

    Returns an immutable copy of this lexicon where, based on the swapRate, signal-referent relations are swapped around with across the mapping's central axis. That is, if swapped, (i)(j) and (i)(contextSize - j) are swapped.

    mixRate

    The rate at which referents are swapped.

    returns

    A referent-swapped signal-referent mapping.

    Definition Classes
    Lexicon
  35. def mutate(mutationRate: Double): Lexicon

    Returns a mutated (but immutable) copy of this lexicon.

    Returns a mutated (but immutable) copy of this lexicon. Each word-referent relationship with graded value v has probability P(mutationRate) of flipping according to Math.abs(v-1). In binary lexicons, a 1 flips to a 0 and vice versa. In graded lexicons a 0.9 flips to a 0.1 and vice versa. This is a non-deterministic transformation.

    mutationRate

    The probability of a word-referent mapping flipping.

    returns

    A mutated (but immutable) mapping.

    Definition Classes
    Lexicon
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def normalizeColumns(): Lexicon

    Returns a normalization of this lexicon across columns (i.e., divides each cell by the sum of its column).

    Returns a normalization of this lexicon across columns (i.e., divides each cell by the sum of its column).

    Definition Classes
    Lexicon
  38. def normalizeRows(): Lexicon

    Returns a normalization of this lexicon across rows (i.e., divides each cell by the sum of its row).

    Returns a normalization of this lexicon across rows (i.e., divides each cell by the sum of its row).

    Definition Classes
    Lexicon
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. def removalBinaryMutation(removalRate: Double, threshold: Double = 1): Lexicon

    Returns a copy of this lexicon where, based on additionRate, a number signal-referent relations of weight > threshold will be removed to the lexicon.

    Returns a copy of this lexicon where, based on additionRate, a number signal-referent relations of weight > threshold will be removed to the lexicon.

    removalRate

    The ratio of 0-valued signal-referent mappings that will be converted to 1.0 (from 0 to 1).

    threshold

    Optional parameter specifying the threshold above which relations can be removed.

    Definition Classes
    Lexicon
  42. val representationLength: Int
  43. def setOrderAsListener(n: Int): Lexicon

    Returns a transformation of this lexicon corresponding to a nth order listener as defined by the Rational Speech Act model.

    Returns a transformation of this lexicon corresponding to a nth order listener as defined by the Rational Speech Act model.

    n

    The order of pragmatic reasoning.

    Definition Classes
    Lexicon
  44. def setOrderAsSpeaker(n: Int): Lexicon

    Returns a transformation of this lexicon corresponding to a nth order speaker as defined by the Rational Speech Act model.

    Returns a transformation of this lexicon corresponding to a nth order speaker as defined by the Rational Speech Act model.

    n

    The order of pragmatic reasoning.

    Definition Classes
    Lexicon
  45. val speakerDefinition: (Lexicon, Int) ⇒ Lexicon
    Definition Classes
    Lexicon
  46. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  47. def to2DVector: Vector[Vector[Double]]

    Returns a 2-dimensional vector representation of the lexicon.

    Returns a 2-dimensional vector representation of the lexicon. Inefficient function, avoid usage.

    Definition Classes
    Lexicon
  48. def toString(): String

    Returns a multi-line formatted string representation of the lexicon.

    Returns a multi-line formatted string representation of the lexicon.

    Definition Classes
    Lexicon → AnyRef → Any
  49. def update(i: Int, j: Int, v: Double): Lexicon

    Returns a new immutable lexicon with the relation between signal i and referent j updated to value v.

    Returns a new immutable lexicon with the relation between signal i and referent j updated to value v.

    Definition Classes
    Lexicon
  50. val vocabularyRepresentations: Vector[Vector[Boolean]]
  51. val vocabularySize: Int
    Definition Classes
    Lexicon
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  55. def [B](y: B): (StructuredLexicon, B)
    Implicit
    This member is added by an implicit conversion from StructuredLexicon to ArrowAssoc[StructuredLexicon] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Lexicon

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from StructuredLexicon to any2stringadd[StructuredLexicon]

Inherited by implicit conversion StringFormat from StructuredLexicon to StringFormat[StructuredLexicon]

Inherited by implicit conversion Ensuring from StructuredLexicon to Ensuring[StructuredLexicon]

Inherited by implicit conversion ArrowAssoc from StructuredLexicon to ArrowAssoc[StructuredLexicon]

Ungrouped