コード例 #1
0
        public override string ToString()
        {
            string strResult = "";
            //			for (int i = 0; i < Length; i++)
            //			{
            //			  strResult = strResult + ((int)TheArray[i]).ToString() + " ";
            //			}

            int index = 0;

            //			TheArray[0] = 5;
            //			TheArray[1] = 3;
            //			TheArray[2] = 1;
            //			TheArray[3] = 0;
            //			TheArray[4] = 2;
//			strResult += " -->  " + this.FormStepsString();
            lock (this)
            {
                strResult += " -->  " + this.FormEquationString();
            }

            strResult += " --> " + CurrentFitness.ToString();

            strResult += " --> " + CalculateNextValue().ToString();

            return(strResult);
        }
コード例 #2
0
        public override string ToString()
        {
            string strResult = "";
            int    index     = 0;

            strResult += " -->  " + this.FormEquationString();
            strResult += " --> " + CurrentFitness.ToString();

            return(strResult);
        }
コード例 #3
0
ファイル: ListGenome.cs プロジェクト: brunomuratore/AxiomMind
        public override string ToString()
        {
            string strResult = "";

            for (int i = 0; i < Length; i++)
            {
                strResult = strResult + ((int)TheArray[i]).ToString() + " ";
            }

            strResult += "-->" + CurrentFitness.ToString();

            return(strResult);
        }