Description Usage Arguments Details Value See Also Examples
Enumerates all possible combinations of meanings for a meaning space of the given dimensionality.
1 2 | enumerate.meaningcombinations(dimensionality, uniquelabels = TRUE,
offset = 0)
|
dimensionality |
either a) a vector of integers specifying the number of different possible values for every meaning dimension, or b) a list or other (potentially ragged) 2-dimensional data structure listing the possible meaning values for every dimension |
uniquelabels |
logical, determines whether the same integers can be
reused across meaning dimensions or not. When |
offset |
a constant that is added to all meaning specifiers. Ignored
when |
The resulting matrix can be passed straight on to
hammingdists
and other meaning distance functions created by
wrap.meaningdistfunction
.
A matrix that has as many columns as there are dimensions, with every row specifying one of the possible meaning combinations. The entries of the first dimension cycle slowest (see examples).
1 2 3 4 5 | enumerate.meaningcombinations(c(2, 2))
enumerate.meaningcombinations(c(3, 4))
enumerate.meaningcombinations(c(2, 2, 2, 2))
enumerate.meaningcombinations(8) # trivial
enumerate.meaningcombinations(list(shape=c("square", "circle"), color=c("red", "blue")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.