public Calculation(ObservableCollection<Data> arr)
 {
     data = arr;
     ContrArr = new double[6];
     SumObject = new Data();
     AverageCalculation();
     Dispersion();
     FactorOfVariation();
     TmaxCalculation();
     TminCalculation();
     ContrMap();
     data.Add(SumObject);
 }
        public IEnumerable<Data> Read()
        {
            List<Data> dt = new List<Data>();
            using (StreamReader reader = new StreamReader("DataTri.txt"))
            {
                while (!reader.EndOfStream)
                {
                    string str = reader.ReadLine().Replace('.', ',');

                    Data d = new Data(double.Parse(str));
                    dt.Add(d);
                }
            }
            return dt;
        }