qexp() Function
The qexp() function gives the possibility, we can use the qexp function to return the corresponding values of the quantile function.
Syntax: qexp(x_qexp, rate)
R
# R program to illustrate # exponential distribution # Specify x-values x_qexp <- seq (0, 1, by = 0.2) # Apply qexp() function y_qexp <- qexp (x_qexp, rate = 1) # Plot values plot (y_qexp) |
Output:
Exponential Distribution in R Programming – dexp(), pexp(), qexp(), and rexp() Functions
The exponential distribution in R Language is the probability distribution of the time between events in a Poisson point process, i.e., a process in which events occur continuously and independently at a constant average rate. It is a particular case of the gamma distribution. In R Programming Language, there are 4 built-in functions to generate exponential distribution:
Function | Description |
dexp | Probability Density Function |
pexp | Cumulative Distribution Function |
qexp | Quantile Function of Exponential Distribution |
rexp | Generating random numbers which are Exponentially Distributed |