/// <summary>
        /// Save the analysis model, parameters, logs and result.
        /// </summary>
        /// <param name="dirName">the top directory of the saved analysis.</param>
        public void SaveAnalysisInfo(string dirName)
        {
            string paramFile = dirName + "/" + m_group.DateString + ".param";
            string resultFile = dirName + "/" + m_group.DateString + ".result";
            string metaFile = resultFile + ".meta";

            // Save the meta file of result.
            List<string> list = new List<string>();
            AnalysisResultMetaFile.CreatePlotMetaFile(metaFile, s_analysisName, list);

            // Save the result file.
            SaveAnalysisResultFile(resultFile);

            // Save the parameter file.
            ParameterEstimationParameterFile f = new ParameterEstimationParameterFile(this, paramFile);
            f.Parameter = m_param;
            f.Write();
        }
        /// <summary>
        /// Load the analysis model, parameters, logs and result.
        /// </summary>
        /// <param name="dirName">the top directory of the loaded analysis.</param>
        public void LoadAnalysisInfo(string dirName)
        {
            List<string> labels;
            string analysisName;
            string paramFile = dirName + "/" + m_group.DateString + ".param";
            string resultFile = dirName + "/" + m_group.DateString + ".result";
            string metaFile = resultFile + ".meta";

            // Load the meta file of result.
            if (!AnalysisResultMetaFile.LoadFile(metaFile, out analysisName, out labels))
                return;

            // Load the result file.
            LoadAnalysisResultFile(resultFile);

            // Load the parameter file.
            ParameterEstimationParameterFile f = new ParameterEstimationParameterFile(this, paramFile);
            f.Parameter = m_param;
            f.Read();
        }