22 #include <ns3/spectrum-value.h>
37 : m_spectrumModel (sof),
38 m_values (sof->GetNumBands ())
70 Values::const_iterator
76 Values::const_iterator
101 Bands::const_iterator
111 Values::iterator it1 =
m_values.begin ();
112 Values::const_iterator it2 = x.
m_values.begin ();
129 Values::iterator it1 =
m_values.begin ();
143 Values::iterator it1 =
m_values.begin ();
144 Values::const_iterator it2 = x.
m_values.begin ();
169 Values::iterator it1 =
m_values.begin ();
170 Values::const_iterator it2 = x.
m_values.begin ();
187 Values::iterator it1 =
m_values.begin ();
202 Values::iterator it1 =
m_values.begin ();
203 Values::const_iterator it2 = x.
m_values.begin ();
221 Values::iterator it1 =
m_values.begin ();
236 Values::iterator it1 =
m_values.begin ();
250 while (i < (
int)
m_values.size () - n)
285 Values::iterator it1 =
m_values.begin ();
289 *it1 = std::pow (*it1, exp);
299 Values::iterator it1 =
m_values.begin ();
303 *it1 = std::pow (base, *it1);
313 Values::iterator it1 =
m_values.begin ();
317 *it1 = std::log10 (*it1);
326 Values::iterator it1 =
m_values.begin ();
340 Values::iterator it1 =
m_values.begin ();
344 *it1 = std::log (*it1);
356 s += (*it1) * (*it1);
359 return std::sqrt (s);
400 i += (*vit) * (bit->fh - bit->fl);
663 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.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
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)
int64x64_t operator+(const int64x64_t &lhs)
Unary plus operator.
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)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
int64x64_t operator-(const int64x64_t &lhs)
Unary negation operator (change sign operator)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Values::iterator ValuesEnd()
friend SpectrumValue Log(const SpectrumValue &arg)
void Divide(const SpectrumValue &x)
void Multiply(const SpectrumValue &x)
Bands::const_iterator End() const
friend SpectrumValue Log10(const SpectrumValue &arg)
int64x64_t operator*(const int64x64_t &lhs, const int64x64_t &rhs)
Multiplication operator.
SpectrumValue & operator-=(const SpectrumValue &rhs)
Subtract the Right Hand Side of the operator from *this, component by component.
Bands::const_iterator ConstBandsEnd() const
SpectrumModelUid_t GetUid() const
SpectrumValue operator<<(int n) const
left shift operator
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
int64x64_t operator/(const int64x64_t &lhs, const int64x64_t &rhs)
Division operator.
Bands::const_iterator ConstBandsBegin() const
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
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.
Bands::const_iterator Begin() const
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)