%% Negative of Normal Likelihood

function y = normalLLF(T,Y)

m=T(1); v=exp(T(2)); n= length(Y);
f = -0.5*n*log(2*pi)-0.5*n*log(v)-(1/(2*v))*(Y-m)'*(Y-m);
y= -f;

end