| Index: src/uan/model/uan-prop-model.cc |
| =================================================================== |
| --- a/src/uan/model/uan-prop-model.cc |
| +++ b/src/uan/model/uan-prop-model.cc |
| @@ -338,6 +338,25 @@ |
| return pdp; |
| } |
| +UanPdp |
| +UanPdp::NormalizeToSumNc (void) |
| +{ |
| + double sumNc = 0.0; |
| + std::vector<Tap> newTaps; |
| + |
| + for (uint32_t i = 0; i < GetNTaps (); i++) |
| + { |
| + sumNc += std::abs (m_taps[i].GetAmp ()); |
| + } |
| + |
| + for (uint32_t i = 0; i < GetNTaps (); i++) |
| + { |
| + newTaps.push_back ( Tap (m_taps[i].GetDelay (), (m_taps[i].GetAmp () / sumNc))); |
| + } |
| + |
| + return UanPdp (newTaps, m_resolution); |
| +} |
| + |
| NS_OBJECT_ENSURE_REGISTERED (UanPropModel); |
| TypeId UanPropModel::GetTypeId (void) |