Compute the negative log-likelihood of data under the exponential distribution with given parameter value.
Arguments
-  param is a scalar containing the scale parameter of the exponential distribution (equal to its mean).
-  data is the vector of given values.
Return values
-  nlogL is the negative log-likelihood.
-  avar is the inverse of the Fisher information matrix.
(The Fisher information matrix is the second derivative of the negative log likelihood with respect to the parameter value.)
See also: expcdf, expfit, expinv, explike, exppdf, exprnd.