Creates the row-stochastic diffusion operator (Markov matrix).
Usage
magic_diffusion_operator(kernel, verbose = FALSE)
Arguments
- kernel
Symmetric kernel matrix from compute_alpha_kernel.
- verbose
Logical or integer. Verbosity level.
Value
A row-stochastic sparse matrix (each row sums to 1).
Details
The diffusion operator is:
$$P = D^{-1} K$$
where D is the diagonal matrix of row sums.