Пример #1
0
        // print to the console using the following format:
        // {file name} {datetime} {value} {median value}
        public static void PrintTOU(string fPath)
        {
            var           fileName = Path.GetFileName(fPath);
            List <TOUDTO> lTOU     = CSVUtil.ReadToTOU(fPath);
            var           median   = GetMedian(lTOU);
            List <TOUDTO> pList    = GetToPrintTOU(lTOU, median);

            pList.ForEach(tou => Console.WriteLine(fileName + " " + tou.Date + " " + tou.Energy + " " + median));
        }