예제 #1
0
        /// <summary>
        /// 生成屏幕亮度数据
        /// </summary>
        /// <returns></returns>
        private List <BrightnessData> generateData()
        {
            var brightnessData = new BrightnessData();
            var src            = brightnessData.Load();

            return(brightnessData.Train(src));
        }
예제 #2
0
        public void LoadDatas()
        {
            var folders = @"F:\Docs\PL\Github\WindowsShade\WindowsShade\bin\Debug\Brightness";
            //var folders = @"D:\PL\MyProjects\GitHub\WindowsShade\WindowsShade\bin\Debug\Brightness";
            var d  = new BrightnessData().Load(folders);
            var sb = new StringBuilder();

            d.ToList().ForEach(m =>
            {
                sb.AppendLine($"{m.Time},{m.Value}");
            });
            Debug.Write(sb.ToString());
        }