Skip to content
Snippets Groups Projects
Commit 60a1bddc authored by Frédéric Karamé's avatar Frédéric Karamé
Browse files

Replace the likelihood of the mean by the mean of the likelihoods.

(cherry picked from commit 35c3a9fc)
parent f5af0b46
Branches 4.5
No related tags found
No related merge requests found
......@@ -169,7 +169,9 @@ for t=1:sample_size
return
end
end
lik(t) = log( probability2(0,PredictedObservedVarianceSquareRoot,PredictionError) ) ;
% lik(t) = log( probability2(0,PredictedObservedVarianceSquareRoot,PredictionError) ) ;
lik(t) = log( sum(probability2(Y(:,t),H_lower_triangular_cholesky,tmp(mf1,:)).*weights,1) ) ;
% lik(t) = log(sum(probability2(Y(:,t),PredictedObservedVarianceSquareRoot,tmp(mf1,:)).*weights,1) ) ;
end
LIK = -sum(lik(start:end));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment