From 9:00 AM - 12:00 PM CDT on Saturday, June 6th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

From 9:00 AM - 12:00 PM CDT on Saturday, June 6th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Last Modified: June 25, 2019

Computes the continuous probability density function (PDF) of a triangular-distributed variate.

Quantile of the continuous random variable.

**x** must be in the interval [**minimum**, **maximum**].

**Default: **0.5

Lower limit parameter of the random variable.

**minimum** must be less than **maximum**.

**Default: **0

Upper limit parameter of the random variable.

**maximum** must be greater than **minimum**.

**Default: **1

Mode parameter of the random variable.

**Default: **NaN — The mode at the midpoint between **minimum** and **maximum**.

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an **error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

**Default: **No error

Probability density function at **x**.

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

**error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

The following equation defines the continuous PDF of a triangular-distributed variate.

$pdf\left(x\right)=\{\begin{array}{c}\frac{2(x-a)}{(b-a)(c-a)},\text{\hspace{0.17em}}\text{\hspace{0.17em}}\mathrm{if}\text{\hspace{0.17em}}a\le x\le c\\ \frac{2(b-x)}{(b-a)(b-c)},\text{\hspace{0.17em}}\text{\hspace{0.17em}}\mathrm{if}\text{\hspace{0.17em}}c\le x\le b\end{array}$

where

*x*is the quantile of the continuous random variable*a*is the lower limit parameter of the random variable*b*is the upper limit parameter of the random variable*c*is the mode parameter of the random variable

**Where This Node Can Run: **

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application