Description Usage Arguments Details Value Note Author(s) See Also Examples
The function rDist
returns a random generation function for a distribution computed through a gaussian kernel density estimate.
1 2 3 |
x |
the data from which the estimate is to be computed. |
... |
additional arguments passed to |
rDist
uses the density
function to compute a gaussian kernel density estimation of x
. Additional arguments can be passed to density
through ...
.
It returns a function that can be used to generate random values from this estimated density.
It is also possible to have a look at the kernel density estimate by calling plot
on the returned function.
A function of class rDist
.
density
is actually only used to compute a bandwidth and for its plotting method.
Only a gaussian kernel can be used.
Antoine Filipovic Pierucci
1 2 3 4 5 6 |
[1] 0.7459395 -0.4485749 -0.2217021 4.0934278 2.5096176 2.0857022
[7] -1.0157183 2.9213888 2.4939764 5.1473008
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.