% Given the following variables: 
% ‘all_hrcs’ is a cell array with each HRC name (each occurring once, only) 
% ‘all_is_hrc’ is a cell array with one entry for each clip, containing that clip’s HRC 
% ‘all_super_mos’ is a cell array with one entry for each clip, containing that 
% clip’s super-set DMOS score. 
% ‘all_super_std’ is an array with one entry for each clip, containing that 
% clip’s super-set standard deviation of MOS scores. 
% ‘all_super_viewers’ is an array with one entry for each clip, containing that 
% clip’s super-set number of viewers. 
% ‘all_super_obj’ is a 2-D array with one entry for each objective model (2nd dimension) and 
% one entry for each clip (1st dimension), containing that model’s VM score for the 
% current clip (after fitting). 
% 
% Compute the following variables: 
 
j = 1;
for i=1:length(all_hrcs),
    if length(all_hrcs{i}) > 3,
        curr = find(strcmp(all_is_hrc,all_hrcs{i}));
        if length(curr) ~= 8,
            error('Didn''t find all 8 SRC for this HRC');
        end
        super_mos(j) = mean(all_super_mos(curr));
        for k = 1:(size(all_super_obj,2)),
            super_obj(j,k) = mean(all_super_obj(curr,k));
        end
        super_viewers(j) = sum(all_super_viewers(curr));
        super_std(j) = sqrt( mean( (all_super_std(curr)).^2 ));
        
        j = j + 1;
    end
end