Weibull negative log-likelihood
nlogl = distfun_wbllike(params,data)
a matrix of doubles, the data
a 1-by-2 matrix of doubles, the parameters of the Weibull distribution. params(1) is a, params(2) is b.
a 1-by-1 matrix of doubles, the negative log-likelihood
Computes the negative log-likelihood depending on the data, assuming that is Weibull distributed.
The negative log-likelihood function is :
-sum(log(PDF(params,data)))
where PDF is the probability distribution function, which depends on the parameters and the data.
http://en.wikipedia.org/wiki/Likelihood_function