public void TestCalculation_FixedHeight() { double x1 = budget.CalculateReceivedPower(0.01, 30); double x2 = budget.CalculateReceivedPower(0.02, 30); Assert.IsTrue(x1 > x2, x1 + "," + x2); }
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 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)); }
public double CalculateReceivedRsrp(ILinkBudget <double> budget, double tiltFactor) { return(budget.CalculateReceivedPower(Distance, Cell.Height) - AzimuthFactor() - tiltFactor); }
public void TestBudgetCalculate() { double x = budget.CalculateReceivedPower(1, 1); Assert.AreEqual(x, -126.172376, eps, x.ToString()); }