parameters default values units stddev (standard deviation) none mean (mean value) none lattice (sample period) S interp (interpolation) 0 none
The gauss function can be used to generate correlated random output. This function takes three or four arguments.
The parameter lattice is for use in transient analysis. A new random value is computed at each time increment of lattice. If lattice is 0, then no lattice is used, and an uncorrelated random value is returned for each call. The interp parameter, used when lattice is nonzero, can have value 1 or 0. If interp is nonzero, the value returned by the function is the (first order) interpolation of the random values at the lattice points which frame the time variable. If interp is 0, the function returns the lattice cell's value for any time within the lattice cell, i.e., a random step with an amplitude change at every lattice point.
The first example above provides a random signal with standard deviation of .5V and mean of 2V, based on random samples taken every 100nS.
The lattice value should be on the order of the user print increment tstep in the transient analysis. It should not be less than the maximum internal time step, since the past history is not stored, and a rejected time point may back up the time across more than one lattice cell, thus destroying the correlation.
This function applies only to transient analysis, where time is the running variable. The argument count is used to distinguish this function from the math function of the same name.