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

Bug fix for options montecarlo and cubature.

parent 6584e242
Branches 4.3
No related tags found
No related merge requests found
Pipeline #11491 failed
......@@ -187,8 +187,8 @@ for t=1:sample_size
lik(t)=-Inf;
return
end
PredictedObservedVarianceSquareRoot = chol(PredictedObservedVariance);
end
PredictedObservedVarianceSquareRoot = chol(PredictedObservedVariance);
PredictedObservedInverseVarianceSquareRoot = PredictedObservedVarianceSquareRoot\eye(n); % Inverse of the Cholesky -> inv(PredictedObservedVariance) = A*A'
StandardPredictionError = PredictedObservedInverseVarianceSquareRoot'*PredictionError;
lik(t) = -.5*n*log(2*pi) + sum(log(diag(PredictedObservedInverseVarianceSquareRoot))) - .5*dot(StandardPredictionError, StandardPredictionError);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment