Description Usage Arguments Details Value Note Author(s) See Also Examples

function to do get empirical density, cumulative distribution and quantile function from random numbers

1 | ```
flat.mix(object)
``` |

`object` |
object of class |

flat.mix generates *10^e* random numbers, by default

*e = RtoDPQ.e*

.
Replicates are assumed to be part of the discrete part, unique values to be
part of the a.c. part of the distribution. For the replicated ones,
we generate a discrete distribution by a call to `DiscreteDistribution`

.
The a.c. density is formed on the basis of *n*
points using approxfun and density (applied to the unique values), by default

*n = DefaultNrGridPoints*

.
The cumulative distribution function is based on all random variables,
and, as well as the quantile function, is also created on the basis of *n* points using
`approxfun`

and `ecdf`

. Of course, the results are usually not exact as they rely on random numbers.

`flat.mix`

returns an object of class `UnivarLebDecDistribution`

.

Use `RtoDPQ`

for absolutely continuous and `RtoDPQ.d`

for discrete distributions.

Peter Ruckdeschel [email protected]

`UnivariateDistribution-class`

,
`density`

,
`approxfun`

,
`ecdf`

1 2 3 4 5 6 7 8 9 10 11 |

distr documentation built on July 9, 2018, 3 a.m.

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.