plot_kernel | R Documentation |
Plots the kernel function for a given set of beta coefficients. NB: coefficients will be normalised so that the kernel describes a probability density.
plot_kernel(beta, type = 'l', ...)
beta |
positive numeric vector of kernel coefficients. |
type |
(optional) plot type, as in base plot() function. The default is a line plot. |
... |
(optional) any additional arguments accepted by base plot() function. |
Hofmeyr, D.P. (2021) "Fast exact evaluation of univariate kernel sums", IEEE Transactions on Pattern Analysis and Machine Intelligence, 43(2), 447-458.
### Plot order 4 smooth kernel
plot_kernel(1/factorial(0:4))
### Use a different line style
plot_kernel(1/factorial(0:4), lty = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.