Skip to contents

A step of the RcppExports implementation. Called by morie_spatial_voting_wordfish. See the file header for the source the module follows.

Arguments

dtm

Passed to .Call.

psi

Passed to .Call.

alpha

Passed to .Call.

beta

Passed to .Call.

omega

Passed to .Call.

Value

The value of .Call.

Examples

set.seed(15)
dtm <- matrix(rpois(12, 3), 3, 4)  # 3 documents x 4 words
morie_spatial_wordfish_omega_update_cpp(dtm, psi = rep(1, 3), alpha = rep(0, 4),
                                        beta = c(-0.5, 0, 0.2, 0.5), omega = c(-1, 0, 1))
#>            [,1]
#> [1,]  1.1463793
#> [2,] -0.6930263
#> [3,] -0.4533530