transform

transform, function

def pure transform(r: ranvar, a: number): ranvar

Returns the ranvar of round(a * X) where X follows the ranvar r.

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
User Contributed Notes
0 notes + add a note