Calculate probability matrix from distances and dot products between neuron segments
calc_prob_mat(
nndists,
dotprods,
distbreaks,
dotprodbreaks = seq(0, 1, by = 0.1),
ReturnCounts = FALSE
)
A matrix with columns as specified by dotprodbreaks
and rows
as specified by distbreaks
, containing probabilities (for default
value of ReturnCounts=TRUE
) or counts (if ReturnCounts=TRUE
)
for finding neuron segments with the given distance and dot product.
a list of nearest-neighbour distances or a list of both nearest-neighbour distances and dot products.
a list of dot products.
a vector specifying the breaks for distances in the probability matrix.
a vector specifying the breaks for dot products in the probability matrix.
a Boolean indicating that counts should be returned instead of the default probabilities.