%\documentclass{sig-alternate}
\documentclass{svjour3}                     % onecolumn (standard format)
\usepackage{times}
\usepackage{cite}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{multirow}
\usepackage{rotating}


%\usepackage[none]{hyphenat} 
\newenvironment{smallitem}
 {\setlength{\topsep}{0pt}
  \setlength{\partopsep}{0pt}
  \setlength{\parskip}{0pt}
  \begin{itemize}
  \setlength{\leftmargin}{.2in}
  \setlength{\parsep}{0pt}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}}
 {\end{itemize}}

\newenvironment{smallenum}
 {\setlength{\topsep}{0pt}
  \setlength{\partopsep}{0pt}
  \setlength{\parskip}{0pt}
  \begin{enumerate}
  \setlength{\leftmargin}{.2in}
   \setlength{\parsep}{0pt}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}}
 {\end{enumerate}}


\usepackage[table]{xcolor}
\usepackage{url,graphicx}
\newcommand{\G}{\cellcolor[rgb]{0.8,0.8,0.8}}
\newcommand{\fig}[1]{Figure~\ref{fig:#1}}
\newcommand{\eq}[1]{Equation~\ref{eq:#1}}
\newcommand{\hyp}[1]{Hypothesis~\ref{hyp:#1}}
\newcommand{\tion}[1]{\S\ref{sec:#1}}

\newcommand{\bi}{\begin{smallitem}}
\newcommand{\ei}{\end{smallitem}}
\newcommand{\be}{\begin{smallenum}}
\newcommand{\ee}{\end{smallenum}}
\newcommand{\bd}{\begin{description}}
\newcommand{\ed}{\end{description}}


\begin{document}

\title{Cross-Company and Within-Company Features for Software Effort Estimation}
\subtitle{Analysis of features to define cross-company projects}

\maketitle

\begin{figure}
\scriptsize
\begin{tabular}{l | l | l | r}
\textbf{Dataset} & \textbf{Criterion} & \textbf{Subsets} & \textbf{Subsets Size}\\[1ex]\hline\hline
%china & resource type & chinaResource1 & 346 \\
% &   & chinaResource2 & 108 \\
% &   & chinaResource3 & 14 \\
% &   & chinaResource4 & 31 \\\hline
finnish & application area $\star$ & finnishAppArea2 & 5 \\
 &  & finnishAppArea7 & 7 \\
 &  & finnishAppArea10 & 7 \\\hline
finnish & application type & finnishAppType1 & 17 \\
 &  & finnishAppType2345 & 18 \\\hline
kemerer & hardware & kemererHardware1 & 7 \\
 &  & kemererHardware23456 & 8 \\\hline
maxwell & application type & maxwellAppType1 & 10 \\
 &  & maxwellAppType2 & 29 \\
 &  & maxwellAppType3 & 18 \\\hline
maxwell & hardware & maxwellHardware2 & 37 \\
 &  & maxwellHardware3 & 16 \\
 &  & maxwellHardware5 & 7 \\\hline
maxwell & source & maxwellSource1 & 8 \\
 &  & maxwellSource2 & 54 \\
\end{tabular}\caption{Selected datasets, their division criterion and the size of subsets. Dataset marked with a ``$\star$'' is too small for TEAK, so it is not included in the experimentation.}
\label{fig:cc-selection}
\end{figure}

\begin{figure}
\scriptsize
\begin{tabular}{l | l l l | l l l | l l}
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{MAR}} \\\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFileMAR} \\[2ex]\hline\hline
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{MMRE}} \\\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFileMMRE} \\[2ex]\hline 
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{MdMRE}} \\\hline\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFileMdMRE}  \\[2ex]\hline 
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{Pred(25)}} \\\hline\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFilePred25} \\
\end{tabular}
\caption{Comparison of performance between cross-company and within-company datasets w.r.t. 4 different performance measures (MAR, MMRE, MdMRE, Pred(25)). In this version, the cross-company dataset consists of all the subsets (including projects of other subsets and within-company itself).}
\label{fig:cc-selection}
\end{figure}

\begin{figure}
\scriptsize
\begin{tabular}{l | l l l | l l l | l l}
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{MAR}} \\\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFileMARWCSep} \\[2ex]\hline\hline
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{MMRE}} \\\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFileMMREWCSep} \\[2ex]\hline 
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{MdMRE}} \\\hline\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFileMdMREWCSep}  \\[2ex]\hline 
\textbf{Dataset} & \multicolumn{3}{c |}{\textbf{WC}} & \multicolumn{3}{c |}{\textbf{CC}} & \multicolumn{2}{c}{\textbf{Pred(25)}} \\\hline\hline
                & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{Win}&\textbf{Tie}&\textbf{Loss} & \textbf{WC} & \textbf{CC} \\
\input{winTieLossFilePred25WCSep} \\
\end{tabular}
\caption{Comparison of performance between cross-company and within-company datasets w.r.t. 4 different performance measures (MAR, MMRE, MdMRE, Pred(25)). In this version, the cross-company dataset does not include the within-company dataset.}
\label{fig:cc-selection}
\end{figure}

\begin{figure}
\scriptsize
\begin{tabular}{l | l | l | l | l }
\textbf{WC Dataset} & \textbf{GAC2 Size} & \textbf{Subset1} & \textbf{Subset2}& \textbf{Subset3} \\[1ex]\hline\hline
finnishAppType1 (17) & 2.6971 & finnishAppType1 (1.3971) & finnishAppType2345 (1.3)  \\
finnishAppType2345 (18) & 2.6167 & finnishAppType1 (1.2889) &finnishAppType2345 (1.3278)  \\[1ex]\hline
kemererHardware1 (7) & 1.4929 & kemererHardware1 (0.91429) & kemererHardware23456 (0.57857)  \\
kemererHardware23456 (8) & 1.4563 & kemererHardware1 (0.80625) & kemererHardware23456 (0.65)  \\[1ex]\hline
maxwellAppType1 (10) & 3.26 & maxwellAppType1 (0.485) & maxwellAppType2 (1.755) & maxwellAppType3 (1.02)  \\
maxwellAppType2 (29) & 2.9672 & maxwellAppType1 (0.45517) & maxwellAppType2 (1.5569) & maxwellAppType3 (0.95517)  \\
maxwellAppType3 (18) & 2.9472 & maxwellAppType1 (0.45833) & maxwellAppType2 (1.5389) & maxwellAppType3 (0.95)  \\ [1ex]\hline
maxwellHardware2 (37) & 2.6865 & maxwellHardware2 (1.8081) & maxwellHardware3 (0.55135) & maxwellHardware5 (0.32703)  \\
maxwellHardware3 (16) & 3.5375 & maxwellHardware2 (2.2313) & maxwellHardware3 (0.83125) & maxwellHardware5 (0.475)  \\ 
maxwellHardware5 (7) & 4.0143 & maxwellHardware2 (2.6429) & maxwellHardware3 (0.95714) & maxwellHardware5 (0.41429)  \\[1ex]\hline
maxwellSource1 (8) & 3.7062 & maxwellSource1 (0.375) & maxwellSource2 (3.3312) \\ 
maxwellSource2 (54) & 3.4324 & maxwellSource1 (0.48704) & maxwellSource2 (2.9454) \\
\end{tabular}
\caption{The amount of instances selected from within and cross company datasets. In parenthesis next to each subset name, the amount of instances selected from that subset is written.}
\label{fig:cc-selection}
\end{figure}




%\bibliographystyle{abbrv}
%\bibliography{references} 
\end{document}

