public void TestCalculation_FixedHeight()
        {
            double x1 = budget.CalculateReceivedPower(0.01, 30);
            double x2 = budget.CalculateReceivedPower(0.02, 30);

            Assert.IsTrue(x1 > x2, x1 + "," + x2);
        }
示例#2
0
 public void TestBudgetFromCell_Calculate_AdjustFrequencyAndRsPower()
 {
     cell.Frequency = 100;
     cell.RsPower = 15.2;
     budget = new LinkBudget(cell);
     double x = budget.CalculateReceivedPower(1, cell.Height);
     Assert.AreEqual(cell.Height, 30);
     Assert.AreEqual(x, -105.758561, eps, x.ToString(CultureInfo.InvariantCulture));
     x = budget.CalculateReceivedPower(1, 20);
     Assert.AreEqual(x, -108.192142, eps, x.ToString(CultureInfo.InvariantCulture));
 }
        public void TestBudgetFromCell_Calculate_AdjustFrequencyAndRsPower()
        {
            cell.Frequency = 100;
            cell.RsPower   = 15.2;
            budget         = new LinkBudget(cell);
            double x = budget.CalculateReceivedPower(1, cell.Height);

            Assert.AreEqual(cell.Height, 30);
            Assert.AreEqual(x, -105.758561, eps, x.ToString(CultureInfo.InvariantCulture));
            x = budget.CalculateReceivedPower(1, 20);
            Assert.AreEqual(x, -108.192142, eps, x.ToString(CultureInfo.InvariantCulture));
        }
示例#4
0
 public double CalculateReceivedRsrp(ILinkBudget<double> budget, double tiltFactor)
 {
     return budget.CalculateReceivedPower(Distance, Cell.Height) - AzimuthFactor() - tiltFactor;
 }
        public void TestBudgetFromCell_Calculate()
        {
            double x = budget.CalculateReceivedPower(1, 1);

            Assert.AreEqual(x, -123.717734, eps, x.ToString(CultureInfo.InvariantCulture));
        }
示例#6
0
 public double CalculateReceivedRsrp(ILinkBudget <double> budget, double tiltFactor)
 {
     return(budget.CalculateReceivedPower(Distance, Cell.Height) - AzimuthFactor() - tiltFactor);
 }
示例#7
0
        public void TestBudgetCalculate()
        {
            double x = budget.CalculateReceivedPower(1, 1);

            Assert.AreEqual(x, -126.172376, eps, x.ToString());
        }