powered by
gram.gauss
gram.gauss(x,x.new,complexity)
previous observations
new observations
tuning parameter in Gaussian kernel
Gram matrix for the Gaussian kernel. This also can be used to project predictor on the testing set.
Li, B. (2018). Sufficient dimension reduction: Methods and applications with R. CRC Press.
# NOT RUN { old <- matrix(c(1,2,3,4),2,2) new <- matrix(c(5,6,7,8),2,2) result <- gram.gauss(old,new,1) # }
Run the code above in your browser using DataLab