Navigation :
transform
def pure transform(r: ranvar, a: number): ranvar
Returns the ranvar of round(a * X) where X follows the ranvar r.
r: the input ranvar.
a: the scaling factor.
Example
r = poisson(2)
t = transform(r, 3)
show summary "Transform" with
mean(r) as "MeanR"
mean(t) as "MeanT"
This outputs the following summary:
| MeanR |
MeanT |
| 1.999924 |
5.864435 |