mapObjectToUtterances: Map objects to utterances

Description Usage Arguments Details Value Examples

View source: R/AllUtterancesAndObjects.R

Description

Determining the specific mapping of objects to utterances that applies given the present objects in the scene.

Usage

1
mapObjectToUtterances(currentObjects)

Arguments

currentObjects

A vector of three values in range {1,...,27} specifying the target and the other two objects.

The target is the first object in the vector (index = 1).

Details

This function is only used in X9

Value

A 3x3 matrix. Values in the matrix are in range {1-9}.

rows: Objects; columns: Feature values of the objects

Examples

 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.

haniaelkersh/rsa-publish-test documentation built on Jan. 31, 2021, 2:02 a.m.