Пример #1
0
 public static double GetStatistic(IEnumerable <int> numbers, StatisticBaseModel <double, IEnumerable <int> > statisticBaseModel)
 {
     return(statisticBaseModel.Calculate(numbers));
 }
Пример #2
0
 private static void ShowResult(StatisticBaseModel <double, IEnumerable <int> > model, IEnumerable <int> sequence)
 {
     Console.WriteLine($"{model.Title}: {CalcStatistic.GetStatistic(sequence, model)}");
 }