powered by
Computes the Gram matrix of the gaussian kernel over a grid of values and computes its singular value decomposition.
rk(grid, sigma = 1, r, tol = 1e-08)
grid of points where the kernel function is evaluated.
is the temperature of the kernel (standard deviation)
the dimension of the basis system of the Gran matrix (K). If missing then r is the rank of K.
A tolerance to keep the first d eigenvalues of A. Default = 1e-08.
Kernel Gram matrix
first r eigenvectors of K using svd.
# NOT RUN { grid = seq(0,1,,100) rk(grid, sigma = 1) # }
Run the code above in your browser using DataLab