Skip to content
Snippets Groups Projects
Commit bcb59e37 authored by MichelJuillard's avatar MichelJuillard
Browse files

fixed bug in conditional forecasts whith constraints on only one period

parent 32b68b71
Branches
Tags
No related merge requests found
......@@ -171,11 +171,8 @@ for i=1:n1
mu(jdx(i),i) = 1;
end
if (size(constrained_paths,2) == 1);
constrained_paths = constrained_paths*ones(1,cL);
else
cL = size(constrained_paths,2);
end
% number of periods with constrained values
cL = size(constrained_paths,2);
constrained_paths = bsxfun(@minus,constrained_paths,trend(idx,1:cL));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment