Skip to main content

interp_rpareto

Function interp_rpareto 

Source
fn interp_rpareto(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Random Pareto deviates.

miniR extension – not available in base R.

The Pareto distribution is a power-law distribution parameterised by scale (minimum value) and shape (tail index).

@param n number of observations @param scale scale parameter (positive, minimum value of the distribution) @param shape shape parameter (positive, controls tail heaviness) @return numeric vector of length n