kernel_build | R Documentation |
This function calculates kernel matrix from spatial locations.
kernel_build(kerneltype = "gaussian", location, bandwidth)
kerneltype |
The type of kernel to be used, either "gaussian", or "cauchy" for cauchy kernel, or "quadratic" for rational quadratic kernel, and "delaunday" for gaussian kernel built with non-linear Delaunay triangulation based distance. |
location |
A n by d matrix of cell/spot location coordinates. |
bandwidth |
A numeric value of bandwidth. |
The kernel matrix for spatial relationship between locations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.