View | Details | Raw Unified | Return to bug 2299
Collapse All | Expand All

(-)a/src/uan/model/uan-prop-model.cc (+19 lines)
 Lines 330-335    Link Here 
330
}
330
}
331
331
332
UanPdp
332
UanPdp
333
UanPdp::NormalizeToSumNc (void) const
334
{
335
  double sumNc = 0.0;
336
  std::vector<Tap> newTaps;
337
338
  for (uint32_t i = 0; i < GetNTaps (); i++)
339
    {
340
      sumNc += std::abs (m_taps[i].GetAmp ());
341
    }
342
343
  for (uint32_t i = 0; i < GetNTaps (); i++)
344
    {
345
      newTaps.push_back ( Tap (m_taps[i].GetDelay (), (m_taps[i].GetAmp () / sumNc)));
346
    }
347
348
  return UanPdp (newTaps, m_resolution);
349
}
350
351
UanPdp
333
UanPdp::CreateImpulsePdp (void)
352
UanPdp::CreateImpulsePdp (void)
334
{
353
{
335
  UanPdp pdp;
354
  UanPdp pdp;
(-)a/src/uan/model/uan-prop-model.h (-1 / +6 lines)
 Lines 233-239    Link Here 
233
   * \return Coherent sum of arrivals after max in given window.
233
   * \return Coherent sum of arrivals after max in given window.
234
   */
234
   */
235
  std::complex<double> SumTapsFromMaxC (Time delay, Time duration) const;
235
  std::complex<double> SumTapsFromMaxC (Time delay, Time duration) const;
236
236
   /**
237
   * Creates a new UanPdp normalized to its non coherent sum.
238
   * \see SumTapsNc
239
   * \returns the new PDP
240
   */
241
  UanPdp NormalizeToSumNc (void) const;
237
  /**
242
  /**
238
   * Get a unit impulse PDP at time 0.
243
   * Get a unit impulse PDP at time 0.
239
   *
244
   *

Return to bug 2299