Compute kernel weights based on distances

compute_kernel_weights(distances, kernel, sigma = NULL)

Arguments

distances

Matrix of distances (cells x neighbors)

kernel

Kernel type: "gaussian", "uniform", or "linear"

sigma

Bandwidth parameter (auto-computed if NULL)

Value

Matrix of weights