1
0
Fork 0
mirror of https://github.com/MillironX/beefblup.git synced 2024-12-22 09:08:16 +00:00

Define "normal" animals

This commit is contained in:
Thomas A. Christensen II 2018-09-17 09:00:21 -06:00
parent f2a60fee49
commit 9ecc9b1bac

View file

@ -67,3 +67,14 @@ if sum(numgroups) >= numanimals
return
end
% Define a "normal" animal as one of the last in the groups, provided that
% all traits do not have null values
normal = cell([1 length(headers)-5]);
for i = 6:length(headers)
for j = numanimals:-1:1
if not(cellfun(@isempty, data(j,i)))
normal(i - 5) = data(j,i);
continue
end
end
end