Skip to content

Commit

Permalink
fix issue #72 when isYout is set for categorical
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-rigoux committed Mar 28, 2019
1 parent 509965f commit c058c97
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 164 deletions.
5 changes: 3 additions & 2 deletions core/display/VBA_Bin2Cont.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
% - gridg/stdy: the average (standard deviation, resp.) of conditional
% likelihoods within each partition cell

y = VBA_vec(y(~isnan(y)));
gx = VBA_vec(gx(~isnan(gx)));

if isempty(gx)
stacky = [];
stdy = [];
Expand All @@ -22,8 +25,6 @@
return
end

y = y(:);
gx = gx(:);
ny = numel(y);
try;maxn;catch;maxn=min([floor(ny/2),8]);end
ne = min([maxn,ny]);
Expand Down
Loading

0 comments on commit c058c97

Please sign in to comment.