Description Usage Arguments Value Examples
Return normalized utility for a vector
1 | rsa.utility(items, costs = rep(0, length(items)), alpha = 1)
|
items, |
literal semantic input vector <m_u1, m_u2,..., m_uN> |
costs, |
cost vector <u1, u2,..., uN> |
alpha, |
decision noise parameter (see 'informativity()') |
return a vector of utilities
1 2 3 4 | literalSemantics <- c(0.0, 0.0, 0.3, 0.3, 0.4)
rsa.utility(items = literalSemantics)
costs <- c(0.0, 0.0, 0.2, 0.3, 0.4)
rsa.utility(items = literalSemantics, costs = costs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.