getConstellationCode: Get object constellation code

Description Usage Arguments Value Examples

View source: R/getConstCodeStratUtt.R

Description

This function determines the ambiguity classes. These are determined by answering this question: What properties does target object share with other objects?

This allows you to group together the trials that have the same levels of ambiguity.

Usage

1
getConstellationCode(objectConstellation, chosenFeature)

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).

chosenFeature

A value {1,2 or 3} that specifies, which one of the three feature values (shape, texture or color) of the chosen object was used as the utterance.

Example:

utterance was "red", means chosen feature is color (chosenFeature = 3).

Value

A list of three rows (length of the objectConstellation vector). Each row..

Examples

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

output:
[[1]]
[1] 1 1 3 2 3 2

[[2]]
[1] 1 2 3

[[3]]
[1] 1 2 3

To see which object are in the object constellation run:

allObjects[objecConstellation,]

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.