object StructuredLexicon extends Serializable
Companion object to StructuredLexicon containing functions to generate graded or binary structured lexicons.
- Alphabetic
- By Inheritance
- StructuredLexicon
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generateBinaryStructuredLexicon(vocabularyRepresentations: Vector[Vector[Boolean]], contextRepresentations: Vector[Vector[Boolean]], mappingFunction: StructuredMappingFunction, mappingThreshold: Double): StructuredLexicon
Generates a StructuredLexicon based on predefined binary string representations for the signals in the vocabulary and referents in the context.
Generates a StructuredLexicon based on predefined binary string representations for the signals in the vocabulary and referents in the context. It computes for each signal-referent pair their representational similarity, which is used as the signal-referent graded value.
- vocabularyRepresentations
A vector of binary string representations of the signals in the vocabulary.
- contextRepresentations
A vector of binary string representations of the referents in the context.
- mappingFunction
The mapping function that computes the similarity between two binary string representations.
- mappingThreshold
This threshold is used to decide if a signal and referent are representationally similar.
- returns
A binary structured lexicon.
-
def
generateBinaryStructuredLexicon(representationLength: Int, mappingFunction: StructuredMappingFunction, mappingThreshold: Double, vocabularySize: Int, contextSize: Int): StructuredLexicon
Generates a binary StructuredLexicon from scratch, randomly generating also the binary string representations for the signals in the vocabulary and referents in the context.
Generates a binary StructuredLexicon from scratch, randomly generating also the binary string representations for the signals in the vocabulary and referents in the context. It then computes for each signal-referent pair their representational similarity, and when that similarity is >=
mappingThreshold, the signal-referent relationship is set to 1.0 and otherwise it is set to 0.0.- representationLength
The length of the binary string representations.
- mappingFunction
The mapping function that computes the similarity between two binary string representations.
- mappingThreshold
This threshold is used to decide if a signal and referent are representationally similar.
- vocabularySize
The size of the vocabulary of the lexicon.
- contextSize
The size of the context of the lexicon.
- returns
A randomly generated binary structured lexicon.
-
def
generateGradedStructuredLexicon(vocabularyRepresentations: Vector[Vector[Boolean]], contextRepresentations: Vector[Vector[Boolean]], mappingFunction: StructuredMappingFunction): StructuredLexicon
Generates a graded StructuredLexicon based on predefined binary string representations for the signals in the vocabulary and referents in the context.
Generates a graded StructuredLexicon based on predefined binary string representations for the signals in the vocabulary and referents in the context. It computes for each signal-referent pair their representational similarity, which is used as the signal-referent graded value.
- vocabularyRepresentations
A vector of binary string representations of the signals in the vocabulary.
- contextRepresentations
A vector of binary string representations of the referents in the context.
- mappingFunction
The mapping function that computes the similarity between two binary string representations.
- returns
A graded structured lexicon.
-
def
generateGradedStructuredLexicon(representationLength: Int, mappingFunction: StructuredMappingFunction, vocabularySize: Int, contextSize: Int): StructuredLexicon
Generates a graded StructuredLexicon from scratch, randomly generating also the binary string representations for the signals in the vocabulary and referents in the context.
Generates a graded StructuredLexicon from scratch, randomly generating also the binary string representations for the signals in the vocabulary and referents in the context. It then computes for each signal-referent pair their representational similarity, which is used as the signal-referent graded value.
- representationLength
The length of the binary string representations.
- mappingFunction
The mapping function that computes the similarity between two binary string representations.
- vocabularySize
The size of the vocabulary of the lexicon.
- contextSize
The size of the context of the lexicon.
- returns
A randomly generated graded structured lexicon.
- Note
It is not recommended to set
representationLengthlower thanvocabularySizeorcontextSize.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mutateStructuredRepresentations(listOfRepresentations: Vector[Vector[Boolean]], changeRate: Double): Vector[Vector[Boolean]]
Returns a mutated (but immutable) vector of binary string representations.
Returns a mutated (but immutable) vector of binary string representations. Each bit in each binary string is mutated with probability
changeRate.- listOfRepresentations
The original vector of binary string representations.
- changeRate
The probability with which each bit in each binary string is mutated.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Language Agents Simulation framework
For detailed documentation on using the framework please see the README.md file at the Github repository at https://github.com/markblokpoel/lanag-core.