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

remove-submodule^2
Frédéric Karamé 2018-06-28 09:20:19 +02:00
parent d549e26a40
commit c65407973b
1 changed files with 3 additions and 1 deletions

View File

@ -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));