pdf

Probability density function.

Syntax

pdf(vec_expr, num_bins)

Input

vec_expr
The vector to populate the bins.
num_bins
The number of bins to create.

Example

Templex Expression Result
{pdf( ( {1 : 10 : 1} ^2), 5)} 0, 0, 0, 0, 1
Curve Math Vectors Result
x = bins(c1.y, 10)

y = pdf(c1.y, 10)

Given c1, a curve is created which is the probability density function of c1.

Comments

The probability density function returns a y vector for a probability density plot. The resultant vector has a number of elements equal to the number of bins. The elements of the resultant vector are the number of data points in each of the corresponding bins.