Ground/response accumulation for one unit (tma model)

lq_accumulate_unit(codes, unit_rows, decay_fn, ordered = FALSE)

Arguments

codes

Numeric matrix for the full context (n_rows x n_codes)

unit_rows

0-based integer vector of rows belonging to this unit

decay_fn

R function mapping a numeric distance vector to weights

ordered

TRUE = directed; FALSE = undirected (upper-tri)

Value

Numeric vector of connection counts