Add forwards, reverse and self scores for a pair of neurons to a sparse score matrix
fill_pairs_sparse_score_mat(
sparse_matrix,
n1,
n2,
dense_matrix,
reverse = TRUE,
self = TRUE,
reverse_self = (reverse && self)
)
A sparse matrix (of class spam
) with the specified score entries filled.
the sparse matrix to fill in.
the name of the query neuron.
the name of the target neuron.
the score matrix from which to extract scores.
logical indicating that the reverse score should also be filled in (default TRUE
).
logical indicating that the self-score of the query should also be filled in (used for normalised scores; default TRUE
).
logical indicating that the self-score of the target should also be filled in (used for mean scores; default TRUE
).