mirror of
https://github.com/MillironX/beefblup.git
synced 2024-11-14 03:23:09 +00:00
Define "normal" animals
This commit is contained in:
parent
f2a60fee49
commit
9ecc9b1bac
1 changed files with 11 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue