Description Usage Arguments Value Author(s) See Also

This function gets the matrix of square norms which is needed for all kernels. Calculating this can help to save time if you are also interested in calculating the median heuristic, handling multiple tuning parameters or trying other kernels.

1 | ```
squareNorm(samples, nystrom_inds = NULL)
``` |

`samples` |
An |

`nystrom_inds` |
The (optional) sample indices to be used in the Nystrom approximation (for when using aSECF). |

An *N* by *N* matrix of squared norms between samples (or *N* by *m* where *m* is the length of `nystrom_inds`

).

Leah F. South

See `medianTune`

and `K0_fn`

for functions which use this.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.