plrnd
Random arrays from the piecewise linear distribution.
r = plrnd (x, Fx)
returns a random number chosen
from the piecewise linear distribution with a vector of x values at
which the CDF changes slope and a vector of CDF values Fx that
correspond to each value in x. Both x and Fx must be
vectors of the same size and at least 2-elements long.
When called with a single size argument, plrnd
returns a square
matrix with the dimension specified. When called with more than one scalar
argument, the first two arguments are taken as the number of rows and columns
and any further arguments specify additional matrix dimensions. The size may
also be specified with a row vector of dimensions, sz.
Further information about the piecewise linear distribution can be found at https://en.wikipedia.org/wiki/Piecewise_linear_function
See also: plcdf, plinv, plpdf, plstat
Source Code: plrnd