Description Usage Arguments Details Value References See Also Examples
Discrete and continuous kernel objects.
NOTE THAT THEIR INTERNAL STRUCTURE (THAT IS, THEIR ATTRIBUTES/SLOTS), IS SUBJECT TO CHANGE.
1 2 3 4 5 6 7 8 9 10 11 | discretized.kernel (n, ck=BIWEIGHT.CKERNEL, ..., xlim)
UNIFORM.CKERNEL
TRIANGULAR.CKERNEL
EPANECHNIKOV.CKERNEL
TRGAUSSIAN.CKERNEL
BIWEIGHT.CKERNEL
TRIWEIGHT.CKERNEL
TRICUBE.CKERNEL
BELL.SPLINE
|
n |
Integer, number of bins. |
ck |
A continuous kernel object. |
xlim |
A length two ascending integer vector. |
... |
Ignored. |
Kernel objects are S4 objects with two slots representing the corresponding PMF/PDF and CDF.
Continuous kernels are predefined constants.
Discrete kernels are constructed by using the discretized.kernel() function to discretize a predefined continuous kernel.
Currently, constructors for both DKS and CKS objects take a continuous kernel object.
(Where the DKS constructors discretize it, internally).
Here, PDFs are symmetric about zero, and have positive density over the interval (-1, 1).
Currently, the truncated Gaussian kernel is symmetrically truncated (then transformed), such that the area from the untruncated distribution is 0.995. The bell spline is a novel kernel, constructed from a three-piece quadratic spline, with knots at -0.5 and 0.5.
Note that the plot_kernel_array function can be used to plot and compare multiple kernels.
A Kernel object.
Refer to the vignette for an overview, references and better examples.
ph.plotf.DKernel, ph.plotf.CKernel
plot_kernel_array
DKS and CKS Models
Conditional Distributions with Mixed Input Types
1 2 3 4 | dk <- discretized.kernel (7)
plot (dk)
plot (BIWEIGHT.CKERNEL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.