rTruncatedExp: Generates a sample from the truncated Exponential random...

Description Usage Arguments Value Examples

View source: R/rMPG_nu_Half.R

Description

Generates a sample from the truncated Exponential random variable rTruncatedExp(n=1, rate=1,lowerLim=0, upperLim=Inf, eps=1e-100 )

Usage

1
rTruncatedExp(n = 1, rate = 1, lowerLim = 0, upperLim = Inf, eps = 1e-100)

Arguments

n

number of samples to be generated.

rate

rate of the Exponential Distribution.

lowerLim

Lower limit of the support. A number greater than 0.

upperLim

UpperLimit of the Support. A number greater then lowerLim

eps=1e-100

Incase a discrete sampler is to be deployed, eps pertains to the bin size.

Value

Samples from the truncated Exponential distribution

Examples

1
2
rTruncatedExp(n=1, rate=2)
rTruncatedExp(n=1, rate=200, lowerLim=20, upperLim=21)

subhadippal2019/BVNF documentation built on March 12, 2021, 10:05 p.m.