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