/// <summary>Outputs the ScanWindow structure in a string.</summary> public override string ToString() { string formatF = F >= 100 ? "{2,-6:0.#}" : (F >= 0 && F < 10 ? " {2,-4:0.#}" : " {2,-5:0.#}"); return(String.Format("{0,7} {1,4} " + formatF + " {3,-5:0.##} {4}", StartIndex, Length, F, CV, Words.WordToString(WordNumber, false))); }
/// <summary>Outputs all the similar words in a string with the 'end-of-line' separator.</summary> /// <returns></returns> public new string ToString() { System.Text.StringBuilder res = new System.Text.StringBuilder(Count * (Words.WordLength + 1)); foreach (int n in _numbers) { res.Append(Words.WordToString(n, true)); } //int i; //for (i=0; i<Count-1; i++) // res.Append(Words.WordToString(this[i], true)); //res.Append(Words.WordToString(this[i], false)); // do not add EOL return(res.ToString()); }
public void ShowSequance() { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(string.Format("Count={0} total={1} ", Count, base.Count)); for (int i = 0; i < Count; i++) { sb.Append(i.ToString("0: ")); sb.Append(Words.WordToString(i, false) + " "); } System.Windows.Forms.MessageBox.Show( String.Format("{0}", sb.ToString()), "", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information); }
/// <summary>Outputs this instance.</summary> /// <param name="isF">Value indicated if should to output F</param> /// <param name="isAvrg">Value indicated if should to output Average</param> /// <returns></returns> public string ToString(bool isF, bool isAvrg) { string res = String.Format("{0} {1,5}", Words.WordToString(SeedNumber, false), Freq.ToString()); if (isF) { res += String.Format(" {0,5:N1}", Avrg.F(Freq)); // F value if (isAvrg) { res += String.Format(" {0,7:0.0} {1,5:.0}", Avrg.Mean, Avrg.SD); // mean & SD values } } return(res); }