Computes the Gram Matrix for a user-specified kernel using the library kernlab. Note that
this function automatically standardizes the columns of the data entered.
Usage
compute_gram_matrix(X, kernel_type, params = c())Arguments
- X
The design matrix with $n$ rows (one for each subject) and $p$ columns (one for each measurement on the subject). This is the design matrix you wish to search for a more optimal design.
- kernel_type
One of the following: "vanilla", "rbf", "poly", "tanh", "bessel", "laplace", "anova" or "spline".
- params
A vector of numeric parameters. Each
kernel_typehas different numbers of parameters required. For more information see documentation for thekernlablibrary.
