src/lte/model/lte-ue-phy.cc
changeset 9686 1bc9e60169cc
parent 9685 e2d696385b5e
child 9688 17f49271f94f
child 10036 ef2b940112fd
equal deleted inserted replaced
9685:e2d696385b5e 9686:1bc9e60169cc
   463       double sum = 0.0;
   463       double sum = 0.0;
   464       uint8_t rbNum = 0;
   464       uint8_t rbNum = 0;
   465       Values::const_iterator it;
   465       Values::const_iterator it;
   466       for (it = m_rsReceivedPower.ConstValuesBegin (); it != m_rsReceivedPower.ConstValuesEnd (); it++)
   466       for (it = m_rsReceivedPower.ConstValuesBegin (); it != m_rsReceivedPower.ConstValuesEnd (); it++)
   467         {
   467         {
   468           sum += (*it);
   468           // convert PSD [W/Hz] to linear power [W] for the single RE
       
   469           // we consider only one RE for the RS since the channel is
       
   470           // flat within the same RB
       
   471           double powerTxW = ((*it) * 180000.0) / 12.0;
       
   472           sum += powerTxW;
   469           rbNum++;
   473           rbNum++;
   470         }
   474         }
   471       double rsrp = sum / (double)rbNum;
   475       double rsrp = sum / (double)rbNum;
   472       // averaged SINR among RBs
   476       // averaged SINR among RBs
   473       sum = 0.0;
   477       sum = 0.0;