rsa.fullRecursion: Run one full recursion between listener -> speaker ->...

Description Usage Arguments Value Examples

Description

Run one full recursion between listener -> speaker -> listener

Usage

1
2
rsa.fullRecursion(m, costs = rep(0, ncol(m)), priors = rep(1, nrow(m)),
  alpha = 1)

Arguments

m,

matrix of semantics (rows = meaning (m rows), cols = words (n cols))

costs,

ncol(m) vector of costs (default is 0 valued vector)

priors,

nrow(m) vector of priors (default is uniform)

alpha,

decision hyper-param

Value

matrix of posterior values

Examples

1
2
3
4
5
m <- matrix(data = c(0, 0.2, 0.25, 0.25, 0.3, 0, 0, 0, 0.3, 0.7), nrow = 5)
rownames(m) <- 1:5
colnames(m) <- c("item1", "item2")
rsa.fullRecursion(m)
rsa.fullRecursion(rsa.fullRecursion(m))

benpeloquin7/rrrsa documentation built on May 12, 2019, 2:08 p.m.