sr: Create SR given one scanpath

Description Usage Arguments Value

Description

This function takes two vectors of states (i and j) and converts it into Successor Representation of the transition sequence.

Usage

1
sr(data, nAOI, a = 0, g = 0, converged = FALSE, mat = TRUE)

Arguments

data

Matrix or dataframe with two columns (first column is the sender (i), second receiver (j))

nAOI

positive integer indicating the number of AOIs

a

alpha. Numeric between 0 and 1

g

gamma. Numeric between 0 and 1

converged

Logical. Should the SR matrix be constructed statically based on first order transition matrix?

mat

Logical. Should the output be matrix or vector? Used for internal purposes.

Value

matrix or vector of the Successor Representation values. The vector is columnwise unfold of a matrix.


Kucharssim/SRSA documentation built on June 9, 2019, 4:49 p.m.