Description Usage Arguments Details Value Examples
View source: R/AllUtterancesAndObjects.R
Determining the specific mapping of objects to utterances that applies given the present objects in the scene.
| 1 | mapObjectToUtterances(currentObjects)
 | 
| currentObjects | A vector of three values in range  The target is the first object in the vector  | 
This function is only used in X9
A 3x3 matrix. Values in the matrix are in range {1-9}.
rows: Objects; columns: Feature values of the objects
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | currentObjects <- c(1,2,3)
mapObjectToUtterances(currentObjects)
output:
      [,1] [,2] [,3]
[1,]    1    4    7
[2,]    2    4    7
[3,]    3    4    7
To see which objects are present in the scene run:
allObjects[currentObjects,]
output:
      shape   pattern  color
[1,] "cloud"  "solid" "blue"
[2,] "circle" "solid" "blue"
[3,] "square" "solid" "blue"
Based on this output you can see that the indices output matrix vector refer
to the following feature values:
cloud = 1, circle = 2, square = 3, solid = 4 and blue = 7.
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.