module: gated_noise
parameters: double varpos double varneg
inputs: double mux_in
outputs:  double out
static_variables:
classes: Rand randg("gauss")
init: 
code:
if (mux_in > 0.0)
   out = sqrt(varpos/Ts)*randg.inp();
else
   out = sqrt(varneg/Ts)*randg.inp();
