Expected value of the Uniform distribution with min \(a\) and max \(b\).

E_unif(min = 0, max = 1)

Arguments

min, max

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

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: Elim_unif(), Etrunc_unif(), Mexcess_unif(), SL_unif(), TVaR_unif(), V_unif(), VaR_unif(), kthmoment_unif()

Examples

E_unif(min = 3, max = 4)
#> [1] 3.5