% Function to evaluate the first moment of the Chi-Square distribution

function f = chif(x);
global NU

f = x .* 0.5^(NU/2) .* x.^(NU/2-1) .* exp(-0.5 .* x) / gamma(NU/2) ;
