expgen: Exponential RV

Description Usage Arguments Details Examples

View source: R/expgen.R

Description

expgen, takes a parameter lambda as the parameter of exponential distribution and returns a random variable witch follows Exponential distribution.

expgen.visual, takes a parameter lambda like expgen and plots an Exponantial distribution with taking 1000 data from expgen.

Usage

1
2
expgen(lambda)
expgen.visual(lambda)

Arguments

lambda

Exponential distribution parameter.

Details

In probability theory and statistics, the exponential distribution (also known as negative exponential distribution) is the probability distribution that describes 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. It is the continuous analogue of the geometric distribution, and it has the key property of being memoryless. In addition to being used for the analysis of Poisson point processes it is found in various other contexts.

The exponential distribution is not the same as the class of exponential families of distributions, which is a large class of probability distributions that includes the exponential distribution as one of its members, but also includes the normal distribution, binomial distribution, gamma distribution, Poisson, and many others.

Examples

1
2

moeinm98/distributions documentation built on May 17, 2019, 4:33 p.m.