Is there a bug in splitapply with a group of nans

1 回表示 (過去 30 日間)
jbpritts
jbpritts 2016 年 9 月 2 日
The splitapply code calls localapply for missing data or data marked with nan. It seems nonsensical! If I mark data with nan, then it may be invalid and should not be called by local apply. In fact, splitapply calls localapply and then removes the results corresponding to data expost. It doesn't make sense, here is the code,
splitData = localsplit(dataVars,gnums,sgnums,gdim);
varargout = localapply(fun,splitData,gdim,nargout);
% Clean up NaN Groups if any(emptyIdx) for ii = 1:length(varargout) varargout{ii}(emptyGroup) = []; end end

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Preprocessing についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by