src/lte/test/reference/loss_COST231_small_cities_urban.m
author Marco Miozzo <marco.miozzo@cttc.es>
Mon, 18 Jul 2011 13:45:20 +0200
changeset 8204 f704063fd288
child 8206 964bd6f3afe3
permissions -rw-r--r--
Add octave reference values computation

function g = loss_COST231_small_cities_urban(d, hb, hm, f)

  %%
  %% function g = gain_freespace(d, c)
  %%
  %% returns the loss at d meters for f frequency and mobile height m and
  %% base station height of hb
  
  assert(isscalar(f));
  assert(f > 0);

  Fhm = (1.1*log10(f)) -(0.7*hm) -(1.56*log(f)) -0.8;
  C = 0;
  g = zeros(size(d));
  g(find(d > 0)) = 46.3 + (33.9*log10(f)) - (13.82*log10(hb)) + (44.9-(6.55*log10(hb))).*log10(d) - Fhm + C;

  g(find(d <= 0)) = 1;