/// <summary> /// Construct the time-series utility. /// </summary> /// /// <param name="theAnalyst">The analyst to use.</param> /// <param name="headings">The column headings.</param> public TimeSeriesUtil(EncogAnalyst theAnalyst, IEnumerable<string> headings) { _buffer = new List<double[]>(); _headingMap = new Dictionary<String, Int32>(); _analyst = theAnalyst; _lagDepth = _analyst.LagDepth; _leadDepth = _analyst.LeadDepth; _totalDepth = _lagDepth + _leadDepth + 1; _inputSize = _analyst.DetermineUniqueColumns(); _outputSize = _analyst.DetermineInputCount() + _analyst.DetermineOutputCount(); int headingIndex = 0; foreach (String column in headings) { _headingMap[column] = headingIndex++; } }