Learn R Programming

lestat (version 1.9)

uniformdistribution: A Uniform Distribution

Description

An object representing a univariate uniform distribution is created.

Usage

uniformdistribution(a = 0, b = 1)

Arguments

a

The lower bound for the distribution. The default is 0.

b

The upper bound for the distribution. The default is 1.

Value

A uniform probability distribution.

Examples

Run this code
# NOT RUN {
dist <- uniformdistribution()
expectation(dist)
variance(dist)
# }

Run the code above in your browser using DataLab