mirror of
https://github.com/MillironX/beefblup.git
synced 2024-11-10 18:23:08 +00:00
Display "normal" definitions to user
This commit is contained in:
parent
9ecc9b1bac
commit
711db276a1
1 changed files with 16 additions and 3 deletions
|
@ -46,7 +46,8 @@ end
|
||||||
for i = 7:length(headers)
|
for i = 7:length(headers)
|
||||||
if length(uniquecell(data(:,i))) <= 1
|
if length(uniquecell(data(:,i))) <= 1
|
||||||
colname = headers{i};
|
colname = headers{i};
|
||||||
disp(['Column "' colname '" does not have any unique animals and will be removed from this analysis.']);
|
disp(['Column "' colname '" does not have any unique animals and will be removed'])
|
||||||
|
disp('from this analysis');
|
||||||
colstodelete = [colstodelete i];
|
colstodelete = [colstodelete i];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -74,7 +75,19 @@ for i = 6:length(headers)
|
||||||
for j = numanimals:-1:1
|
for j = numanimals:-1:1
|
||||||
if not(cellfun(@isempty, data(j,i)))
|
if not(cellfun(@isempty, data(j,i)))
|
||||||
normal(i - 5) = data(j,i);
|
normal(i - 5) = data(j,i);
|
||||||
continue
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
% Print the results of the "normal" definition
|
||||||
|
disp(' ')
|
||||||
|
disp('For the purposes of this analysis, a "normal" animal will be defined')
|
||||||
|
disp('by the following traits:')
|
||||||
|
for i = 6:length(headers)
|
||||||
|
disp([headers{i} ': ' normal{i-5}])
|
||||||
|
end
|
||||||
|
disp(' ')
|
||||||
|
disp('If no animal matching this description exists, the results may appear')
|
||||||
|
disp('outlandish, but are still as correct as the accuracy suggests')
|
||||||
|
disp(' ')
|
Loading…
Reference in a new issue