function kernelMdMREMMRECalculator2(mre3,mre3Kernel,mre5,mre5Kernel,mre7,mre7Kernel,mre9,mre9Kernel,mreBestK,mreBestKKernel) MMRE = zeros(10,1); MdMRE = zeros(10,1); MMRE(1) = mean(mre3(1,:)); MdMRE(1) = median(mre3(1,:)); for i = 2:20 if median(mre3(i,:)) > MdMRE(1) MMRE(1) = mean(mre3(i,:)); MdMRE(1) = median(mre3(i,:)); end end MMRE(2) = mean(mre5(1,:)); MdMRE(2) = median(mre5(1,:)); for i = 2:20 if median(mre5(i,:)) > MdMRE(2) MMRE(2) = mean(mre5(i,:)); MdMRE(2) = median(mre5(i,:)); end end allMre5(isnan(allMre5)) = []; MMRE(3) = mean(mre7(1,:)); MdMRE(3) = median(mre7(1,:)); for i = 2:20 if median(mre7(i,:)) > MdMRE(3) MMRE(3) = mean(mre7(i,:)); MdMRE(3) = median(mre7(i,:)); end end allMre7(isnan(allMre7)) = []; MMRE(4) = mean(mre9(1,:)); MdMRE(4) = median(mre9(1,:)); for i = 2:20 if median(mre9(i,:)) > MdMRE(4) MMRE(4) = mean(mre9(i,:)); MdMRE(4) = median(mre9(i,:)); end end allMre9(isnan(allMre9)) = []; MMRE(5) = mean(mreBestK(1,:)); MdMRE(5) = median(mreBestK(1,:)); for i = 2:20 if median(mreBestK(i,:)) > MdMRE(5) MMRE(5) = mean(mreBestK(i,:)); MdMRE(5) = median(mreBestK(i,:)); end end allMreBestK(isnan(allMreBestK)) = []; MMRE(6) = mean(mre3Kernel(1,:)); MdMRE(6) = median(mre3Kernel(1,:)); for i = 2:20 if median(mre3Kernel(i,:)) > MdMRE(6) MMRE(6) = mean(mre3Kernel(i,:)); MdMRE(6) = median(mre3Kernel(i,:)); end end allMre3Kernel(isnan(allMre3Kernel)) = []; MMRE(7) = mean(mre5Kernel(1,:)); MdMRE(7) = median(mre5Kernel(1,:)); for i = 2:20 if median(mre5Kernel(i,:)) > MdMRE(7) MMRE(7) = mean(mre5Kernel(i,:)); MdMRE(7) = median(mre5Kernel(i,:)); end end allMre5Kernel(isnan(allMre5Kernel)) = []; MMRE(8) = mean(mre7Kernel(1,:)); MdMRE(8) = median(mre7Kernel(1,:)); for i = 2:20 mre5Kernel end allMre7Kernel(isnan(allMre7Kernel)) = []; MMRE(9) = mean(mre9Kernel(1,:)); MdMRE(9) = median(mre9Kernel(1,:)); for i = 2:20 allMre9Kernel = [allMre9Kernel,mre9Kernel(i,:)]; end allMre9Kernel(isnan(allMre9Kernel)) = []; MMRE(10) = mean(mreBestKKernel(1,:)); MdMRE(10) = median(mreBestKKernel(1,:)); for i = 2:20 allMreBestKKernel = [allMreBestKKernel,mreBestKKernel(i,:)]; end allMreBestKKernel(isnan(allMreBestKKernel)) = []; MdMRE MMRE end