Is there a bug in splitapply with a group of nans
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Preprocessing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!