/// <summary> /// Constructor /// </summary> /// <param name="dataSet">Single data set</param> public ChartData(IEnumerable<int> dataSet) { if (IsSimpleEncoderEnough(dataSet)) { _processor = new EncodingProcessor<SimpleEncoder, int>(dataSet); } else { _processor = new EncodingProcessor<ExtendedEncoder, int>(dataSet); } }
/// <summary> /// Constructor /// </summary> /// <param name="sets">Set of data sets</param> public ChartData(IEnumerable<IEnumerable<int>> sets) { if (IsSimpleEncoderEnough(sets)) { _processor = new EncodingProcessor<SimpleEncoder, int>(sets); } else { _processor = new EncodingProcessor<ExtendedEncoder, int>(sets); } }
/// <summary> /// Constructor /// </summary> /// <param name="dataSet">Single data set</param> public ChartData(IEnumerable<float> dataSet) { _processor = new EncodingProcessor<TextEncoder, float>(dataSet); }
/// <summary> /// Constructor /// </summary> /// <param name="sets">Set of data sets</param> public ChartData(IEnumerable<IEnumerable<float>> sets) { _processor = new EncodingProcessor<TextEncoder, float>(sets); }