Distance-based Kernel
This function defines a distance-based kernel function.
dkernel(x, y, rho)
x |
a numerical scalar or vector of metabolomic measurements. |
y |
a numerical scalar or vector of metabolomic measurements. |
rho |
a positve real number, determining the smoothness of the kernel function. |
This function calculates a distance-based kernel function dkernel between two metabolomic measurements x and y. It first calculates the distance between x and y (see function mdist for more details). Then the kernel function dkernel is calculated as
dkernel(x,y)=exp\{ \frac{-mdist(x,y)^2}{ρ}\}
A positive real value.
Zhan, X., Patterson, A. D., & Ghosh, D. (2015). Kernel approaches for differential expression analysis of mass spectrometry-based metabolomics data. BMC Bioinformatics, 16(1), 77.
x=rnorm(5) y=rnorm(5) dkernel(x,y,1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.