Description Usage Arguments Details Value Examples
View source: R/f3.rbsb4.code.r
This function returns the probability density of an /empirical/
object as a list with two components: w
for the discrete part
and y
for the continuous part associated to different values
of the random variable.
1 | dempirical(x, empi)
|
x |
Vector of values for which the density is desired. |
empi |
The |
the proposed empi
is normalized before the computation. So if
you don't what that, use by yourself the two functions
continuous2density
and discrete2density
.
A list with two components $w,$y
having each the same length
as x
;
1 2 | rbsb3k("RESET"); # for R checking compliance (useless)
dempirical(seq(0, 4, 0.5), new("empirical"));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.