kernel_build: Build kernel matrix.

kernel_buildR Documentation

Build kernel matrix.

Description

This function calculates kernel matrix from spatial locations.

Usage

kernel_build(kerneltype = "gaussian", location, bandwidth)

Arguments

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.

Value

The kernel matrix for spatial relationship between locations.


shangll123/SpatialPCA documentation built on April 17, 2024, 3:15 a.m.