Learn R Programming

Distributacalcul (version 0.2.2)

Etronq_unif: Truncated mean of the Uniform distribution

Description

Truncated mean of the Uniform distribution with min \(a\) and max \(b\).

Usage

Etronq_unif(d, min = 0, max = 1, less.than.d = TRUE)

Arguments

d

cut-off value.

min, max

lower and upper limits of the distribution. Must be finite.

less.than.d

logical; if TRUE (default) truncated mean for values <= d, otherwise, for values > d.

Value

Function :

Invalid parameter values will return an error detailing which parameter is problematic.

Details

The (continuous) uniform distribution with min and max parameters \(a\) and \(b\) respectively has density: $$f(x) = \frac{1}{b - a} \times \bm{1}_{\{x \in [a, b] \}}$$ for \(x \in [a, b]\).

See Also

Other Continuous Uniform Distribution: E_unif(), Elim_unif(), Mexcess_unif(), SL_unif(), TVaR_unif(), V_unif(), VaR_unif(), kthmoment_unif()

Examples

Run this code
# NOT RUN {
Etronq_unif(d = 3, min = 2, max = 4)

# Values greather than d
Etronq_unif(d = 3, min = 2, max = 4, less.than.d = FALSE)

# }

Run the code above in your browser using DataLab