Learn R Programming

ActuDistns (version 2.0)

duniform: Uniform pdf

Description

Computes the pdf of the uniform distribution

Usage

duniform(x, a = 1, b = 2)

Arguments

x
scale or vector of values at which the pdf needs to be computed, values must be between a and b
a
the value of a parameter, must be positive
b
the value of b parameter, must be greater than a

Value

  • An object of the same length as x, giving the pdf values computed at x

References

S. Nadarajah, S. A. A. Bakar, Tabulations of survival models for actuarial use, submitted

Examples

Run this code
x=runif(10,min=1,max=2)
y=duniform(x)

Run the code above in your browser using DataLab