Commit bcb59e37 authored by MichelJuillard's avatar MichelJuillard
Browse files

fixed bug in conditional forecasts whith constraints on only one period

parent 32b68b71
...@@ -171,11 +171,8 @@ for i=1:n1 ...@@ -171,11 +171,8 @@ for i=1:n1
mu(jdx(i),i) = 1; mu(jdx(i),i) = 1;
end end
if (size(constrained_paths,2) == 1); % number of periods with constrained values
constrained_paths = constrained_paths*ones(1,cL); cL = size(constrained_paths,2);
else
cL = size(constrained_paths,2);
end
constrained_paths = bsxfun(@minus,constrained_paths,trend(idx,1:cL)); constrained_paths = bsxfun(@minus,constrained_paths,trend(idx,1:cL));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment