getUtteranceChoiceConstellationCode: Get utterance-choice's constellation code

Description Usage Arguments Value Examples

View source: R/getConstCodeStratUtt.R

Description

Method that determines the utterance choice constellation code.

It also determines the resulting feature-order, the object-order and the feature-value-order.

The feature-order depends on the individual feature value ambiguities.

Usage

1

Arguments

objectConstellation

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

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

Value

A list of four rows.

First row: resultCode

Second row: featureOrder

Thrid row: objectOrder

Fourth row: featureValueOrder

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
getUtteranceChoiceConstellationCode(objectConstellation)

output:
[[1]]
[1] "331"

[[2]]
[1] 3 2 1

[[3]]
[1] 1 2 3

[[4]]
[1] 7 4 1 2 3

To see which object are in the object constellation run:
allObjects[objectConstellation,]

output:
     shape   pattern  color
[1,] "cloud"  "solid" "blue"
[2,] "circle" "solid" "blue"
[3,] "square" "solid" "blue"

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