RealtimeAnalysis.FormPRM.GetPCB_EDF C# (CSharp) Method

GetPCB_EDF() private method

private GetPCB_EDF ( DataTable dt ) : void
dt System.Data.DataTable
return void
        private void GetPCB_EDF(DataTable dt)
        {
            double max = 0;
            for (double t = Get_Pmin(dt); t <= _intervalLength; t = t + _incrementUnit)
            {
                double t_power = Math.Pow(t - 2 * _PI, 2);
                double t_plus = 8 * _PI * GetDBF_W(dt, t);
                double t_sqrt = Math.Sqrt(t_power + t_plus);
                double t_minus = t - 2 * _PI;
                double temp = (t_sqrt - t_minus) / (double)4;
                max = Math.Max(max, temp);

                //Console.WriteLine(t_power + " " + t_plus + " " + t_sqrt + " " + t_minus + " " + temp);
            }

            Console.WriteLine("PCB for EDF = " + max + " / " + _PI + "\t" + max / _PI);
        }
        [Obsolete]