Skip to content

Instantly share code, notes, and snippets.

@Higgcz
Created November 1, 2012 19:17
Show Gist options
  • Save Higgcz/3995814 to your computer and use it in GitHub Desktop.
Save Higgcz/3995814 to your computer and use it in GitHub Desktop.
Log likelihood function (normal distribution)
covGen = (0.5:0.001:2.5) * 10e2;
for s=1:size(covGen,2),
L(s) = sum(log(normpdf(measurmentX1, Model.Mean, covGen(s))));
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment