示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dataSet">Single data set</param>
 public ChartData(IEnumerable<float> dataSet)
 {
     _processor = new EncodingProcessor<TextEncoder, float>(dataSet);
 }
示例#4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sets">Set of data sets</param>
 public ChartData(IEnumerable<IEnumerable<float>> sets)
 {
     _processor = new EncodingProcessor<TextEncoder, float>(sets);
 }