标签:
一、 效果如图
二、代码如下
1 \begin{table} 2 \centering 3 \caption{Suspiciousness of statements for \texttt{foo()} computed by different approaches} 4 \label{Tbl:Suspiciousness} 5 \begin{tabular}{|c||c|c|c|c||c|c|c|c|} 6 \hline 7 \multirow{2}{*}{statement} & \multicolumn{4}{c||}{coverage based} & \multicolumn{4}{c|}{hybrid slice spectrum based} \ 8 \cline{2-9} & Tarantula & Naish2 & R\&R & HSS & Tarantula & Naish2 & R\&R & HSS \\ \hline \hline 9 $s_{1}$ & 0.5 & 2.17 & 0.38 & 0.89 & 0.5 & 2.2 & 0.38 & 0.91 \\ \rowcolor{gray!40} % set next line gray background color 10 $s_{2}$ & 0.5 & 2.17 & 0.38 & 0.89 & 0.5 & 2.2 & 0.38 & 0.91 \11 $s_{3}$ & 0.5 & 2.17 & 0.38 & 0.89 & 0.25 & 0.2 & 0.13 & 0.05 \12 $s_{4}$ & 0.5 & 2.17 & 0.38 & 0.89 & 0.5 & 2.2 & 0.38 & 0.91 \13 $s_{5}$ & 0.53 & 1.5 & 0.25 & 0.41 & 0.57 & 1.6 & 0.25 & 0.43 \14 $s_{6}$ & 0.53 & 1.5 & 0.25 & 0.41 & 0.4 & 0.6 & 0.13 & 0.09 \15 $s_{7}$ & 0.53 & 1.5 & 0.25 & 0.41 & 0.57 & 1.6 & 0.25 & 0.43 \16 $s_{8}$ & 0.5 & 2.17 & 0.38 & 0.89 & 0.5 & 2.2 & 0.38 & 0.91 \17 $s_{9}$ & 0.53 & 1.5 & 0.25 & 0.41 & 0.57 & 1.6 & 0.25 & 0.43 \18 $s_{10}$ & 0.45 & 0.67 & 0.13 & 0.09 & 0.4 & 0.6 & 0.13 & 0.09 \19 $s_{11}$ & 0.5 & 2.17 & 0.38 & 0.89 & 0.5 & 2.2 & 0.38 & 0.91 \\ \hline \hline 20 fault rank & 5-10 & 1-6 & 1-6 & 1-6 & 4-8 & 1-5 & 1-5 & 1-5 \\ \hline 21 loc. cost(\%) & 45.5-90.9 & 9.1-54.5 & 9.1-54.5 & 9.1-54.5 & 36.4-72.7 & 9.1-45.5 & 9.1-45.5 & 9.1-45.5 \\ \hline 22 23 \end{tabular} 24 \end{table}
三、代码解释
\multirow{2}{*}{statement} & \multicolumn{4}{c||}{coverage based} & \multicolumn{4}{c|}{hybrid slice spectrum based} \ 8 \cline{2-9} & Tarantula & Naish2 & R\&R & HSS & Tarantula & Naish2 & R\&R & HSS \\ \hline
\rowcolor{gray!40} % set next line gray background color
标签:
原文地址:http://www.cnblogs.com/juking/p/4888220.html