Rev Language Reference


tnShift - A shifted distribution

Shifts a given distribution.

Usage

tnShift(Distribution__RealPos baseDistribution, RealPos delta)

Arguments

baseDistribution : Distribution__RealPos (pass by const reference)
The distribution to be transformed.
delta : RealPos (pass by const reference)
The amount added to base random variable.

Domain Type

Details

If X ~ dist then tnShift(dist, d) is the distribution of X + d

Example

x ~ tnShift(dExponential(1),2)       # An exponential variable starting at 2.
x ~ dnExponential(1) |> tnShift(2)   # Expressed using pipes.

See Also