This class represents a field that the Encog Analyst is in the process of analyzing. This class is used to track statistical information on the field that will help the Encog analyst determine what type of field this is, and how to normalize it.
Inheritance: Encog.App.Analyst.Script.DataField
Ejemplo n.º 1
0
 /// <summary>
 ///     Generate the fields using counts, no headers provided.
 /// </summary>
 /// <param name="csv">The CSV file to use.</param>
 private void GenerateFieldsFromCount(ReadCSV csv)
 {
     _fields = new AnalyzedField[csv.ColumnCount];
     for (int i = 0; i < _fields.Length; i++)
     {
         _fields[i] = new AnalyzedField(_script, "field:" + (i + 1));
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     Generate the fields using header values.
        /// </summary>
        /// <param name="csv">The CSV file to use.</param>
        private void GenerateFieldsFromHeaders(ReadCSV csv)
        {
            var h = new CSVHeaders(csv.ColumnNames);

            _fields = new AnalyzedField[csv.ColumnCount];
            for (int i = 0; i < _fields.Length; i++)
            {
                if (i >= csv.ColumnCount)
                {
                    throw new AnalystError(
                              "CSV header count does not match column count");
                }
                _fields[i] = new AnalyzedField(_script, h.GetHeader(i));
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 ///     Generate the fields using header values.
 /// </summary>
 /// <param name="csv">The CSV file to use.</param>
 private void GenerateFieldsFromHeaders(ReadCSV csv)
 {
     var h = new CSVHeaders(csv.ColumnNames);
     _fields = new AnalyzedField[csv.ColumnCount];
     for (int i = 0; i < _fields.Length; i++)
     {
         if (i >= csv.ColumnCount)
         {
             throw new AnalystError(
                 "CSV header count does not match column count");
         }
         _fields[i] = new AnalyzedField(_script, h.GetHeader(i));
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     Generate the fields using counts, no headers provided.
 /// </summary>
 /// <param name="csv">The CSV file to use.</param>
 private void GenerateFieldsFromCount(ReadCSV csv)
 {
     _fields = new AnalyzedField[csv.ColumnCount];
     for (int i = 0; i < _fields.Length; i++)
     {
         _fields[i] = new AnalyzedField(_script, "field:" + (i + 1));
     }
 }