Memory-based methods involve storing the entire training set in order to make predictions for future data points. They require a metric to be defined that measures the similarity of any two vectors in input space.
Many linear parametric models can be re-cast into an equivalent dual representation in which the predictions are also based on linear combinations of a kernel function evaluated at the training data points. For models which are based on a fixed nonlinear feature space mapping $\bm\phi(\bold x)$, the kernel function is given by the relation
$$ k(\bold x,\bold x^{\prime})=\bm\phi(\bold x)^{\text T}\bm\phi(\bold x^{\prime}) $$
From this definition, we see that the kernel is a symmetric function of its arguments so that $k(\bold x,\bold x^{\prime})=k(\bold x^{\prime},\bold x)$.
Exameples: