Skip to contents

finalize_self_connections() summed over the lines.

Usage

aggregate_self_connections(row_conn, n_codes, ordered = FALSE, weight = NULL)

Arguments

row_conn

Numeric matrix (n_response_rows x n_codes^2) of per-row directed counts, i.e. apply_tensor()$row_connection_counts

n_codes

Number of codes

ordered

TRUE = keep directed n*n rows; FALSE = fold to choose(n, 2)

weight

Weight model name ("binary", "product", "sqrt", "log1p"), or TRUE/FALSE for the legacy binary flag (TRUE = "binary", FALSE = "product"). NULL (default) = "binary".

Value

Numeric vector of length n_codes