Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 996 Bytes

File metadata and controls

41 lines (28 loc) · 996 Bytes

.DISTRIBUTION Statement

The .DISTRIBUTION statement defines a custom probability density function (PDF) for use with Monte Carlo analysis.

Syntax

.DISTRIBUTION <name> (<x1>,<y1>) (<x2>,<y2>) [(<x3>,<y3>) ...]
Parameter Description
name Name of the distribution
(x, y) Coordinate pairs defining the PDF curve

The PDF is defined as a piecewise-linear function through the given (x, y) points.

Examples

* Uniform distribution from -1 to 1
.DISTRIBUTION uniform (-1,1) (1,1)

* Triangular distribution centered at 0
.DISTRIBUTION triangular (-1,0) (0,1) (1,0)

Usage with Monte Carlo

Set the default distribution for .MC analysis:

.DISTRIBUTION my_dist (-1,0) (0,2) (1,0)
.OPTIONS DISTRIBUTION=my_dist
.MC 100 TRAN V(OUT) MAX

Notes

  • The y-values define relative probability — the simulator normalizes automatically.
  • Built-in distributions are available without explicit definition.