22 #include <ns3/spectrum-value.h>
37 : m_spectrumModel (sof),
38 m_values (sof->GetNumBands ())
64 Values::const_iterator
70 Values::const_iterator
105 Values::iterator it1 =
m_values.begin ();
106 Values::const_iterator it2 = x.
m_values.begin ();
123 Values::iterator it1 =
m_values.begin ();
137 Values::iterator it1 =
m_values.begin ();
138 Values::const_iterator it2 = x.
m_values.begin ();
163 Values::iterator it1 =
m_values.begin ();
164 Values::const_iterator it2 = x.
m_values.begin ();
181 Values::iterator it1 =
m_values.begin ();
196 Values::iterator it1 =
m_values.begin ();
197 Values::const_iterator it2 = x.
m_values.begin ();
215 Values::iterator it1 =
m_values.begin ();
230 Values::iterator it1 =
m_values.begin ();
244 while (i < (
int)
m_values.size () - n)
279 Values::iterator it1 =
m_values.begin ();
283 *it1 = std::pow (*it1, exp);
293 Values::iterator it1 =
m_values.begin ();
297 *it1 = std::pow (base, *it1);
307 Values::iterator it1 =
m_values.begin ();
311 *it1 = std::log10 (*it1);
320 Values::iterator it1 =
m_values.begin ();
334 Values::iterator it1 =
m_values.begin ();
338 *it1 = std::log (*it1);
350 s += (*it1) * (*it1);
353 return std::sqrt (s);
394 i += (*vit) * (bit->fh - bit->fl);
657 Values::iterator it1 =
m_values.begin ();
Values::const_iterator ConstValuesEnd() const
SpectrumValue & operator*=(const SpectrumValue &rhs)
Multiply *this by the Right Hand Side of the operator, component by component.
smart pointer class similar to boost::intrusive_ptr
#define NS_LOG_FUNCTION(parameters)
uint32_t SpectrumModelUid_t
SpectrumValue & operator/=(const SpectrumValue &rhs)
Divide *this by the Right Hand Side of the operator, component by component.
double Integral(const SpectrumValue &arg)
void Subtract(const SpectrumValue &x)
SpectrumValue operator>>(int n) const
right shift operator
SpectrumValue & operator+=(const SpectrumValue &rhs)
Add the Right Hand Side of the operator to *this, component by component.
SpectrumModelUid_t GetSpectrumModelUid() const
#define NS_ASSERT(condition)
TracedValue< T > operator*(const TracedValue< T > &lhs, const TracedValue< U > &rhs)
Values::iterator ValuesEnd()
friend SpectrumValue Log(const SpectrumValue &arg)
void Divide(const SpectrumValue &x)
void Multiply(const SpectrumValue &x)
friend SpectrumValue Log10(const SpectrumValue &arg)
SpectrumValue & operator-=(const SpectrumValue &rhs)
Subtract the Right Hand Side of the operator from *this, component by component.
Bands::const_iterator ConstBandsEnd() const
SpectrumValue operator<<(int n) const
left shift operator
NS_LOG_COMPONENT_DEFINE("SpectrumValue")
Ptr< const SpectrumModel > GetSpectrumModel() const
friend SpectrumValue Pow(const SpectrumValue &lhs, double rhs)
void Add(const SpectrumValue &x)
SpectrumValue Pow(double lhs, const SpectrumValue &rhs)
Ptr< const SpectrumModel > m_spectrumModel
Time operator+(const Time &lhs, const Time &rhs)
TracedValue< T > operator/(const TracedValue< T > &lhs, const TracedValue< U > &rhs)
Bands::const_iterator ConstBandsBegin() const
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Time operator-(const Time &lhs, const Time &rhs)
SpectrumValue Log10(const SpectrumValue &arg)
Values m_values
Set of values which implement the codomain of the functions in the Function Space defined by Spectrum...
friend SpectrumValue Log2(const SpectrumValue &arg)
double & operator[](size_t index)
Access value at given frequency index.
Values::iterator ValuesBegin()
SpectrumValue Log(const SpectrumValue &arg)
double Norm(const SpectrumValue &x)
SpectrumValue & operator=(double rhs)
Assign each component of *this to the value of the Right Hand Side of the operator.
double Sum(const SpectrumValue &x)
Ptr< SpectrumValue > Copy() const
Values::const_iterator ConstValuesBegin() const
SpectrumValue Log2(const SpectrumValue &arg)
Set of values corresponding to a given SpectrumModel.
double Prod(const SpectrumValue &x)