Scythe-1.0.3
double scythe::dexp ( double  x,
double  scale 
) [inline]

The exponential density function.

Computes the value of the exponential probability density function with given scale, at the desired quantile x.

It is also possible to call this function with a Matrix of doubles as its first argument. In this case the function will return a Matrix of doubles of the same dimension as x, containing the result of evaluating this function at each value in x, given the remaining fixed parameters. By default, the returned Matrix will be concrete and have the same matrix_order as x, but you may invoke a generalized version of the function with an explicit template call.

Parameters:
xThe desired quantile.
scaleThe positive scale of the function.
See also:
pexp(double x, double scale)
rng::rexp(double scale)
Exceptions:
scythe_invalid_arg(Level 1)

References exp(), and SCYTHE_CHECK_10.