Skip to contents

Update ranked utility vector

Usage

update_U_ranked(U, sys, Sigma_inv)

Arguments

U

[numeric(J - 1)]
The current utility vector.

sys

[numeric(J - 1)]
The systematic utility.

Sigma_inv

[matrix(J - 1, J - 1)]
The inverted error covariance matrix.

Value

An update for (a single) ranked U.

Examples

U <- sys <- c(0, 0)
Sigma_inv <- diag(2)
update_U_ranked(U, sys, Sigma_inv)
#>            [,1]
#> [1,] -0.6929013
#> [2,] -0.1008980