|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #ifndef SPECTRUM_VALUE_H
22 #define SPECTRUM_VALUE_H
25 #include <ns3/simple-ref-count.h>
26 #include <ns3/spectrum-model.h>
100 const double&
operator[] (
size_t index)
const;
171 const double &
ValuesAt (uint32_t pos)
const;
586 void Pow (
double exp);
593 void Exp (
double base);
Ptr< SpectrumValue > Copy() const
double Integral(const SpectrumValue &arg)
SpectrumValue Log10(const SpectrumValue &arg)
void Log2()
Applies a Log2 to each the elements.
Values::const_iterator ConstValuesEnd() const
friend double Prod(const SpectrumValue &x)
Values::iterator ValuesBegin()
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double Sum(const SpectrumValue &x)
uint32_t GetValuesN() const
Get the number of values stored in the array.
double & operator[](size_t index)
Access value at given frequency index.
Values m_values
Set of values which implement the codomain of the functions in the Function Space defined by Spectrum...
A template-based reference counting class.
Bands::const_iterator ConstBandsEnd() const
void Log10()
Applies a Log10 to each the elements.
Ptr< const SpectrumModel > GetSpectrumModel() const
void ShiftLeft(int n)
Shift the values to the left.
friend double Integral(const SpectrumValue &arg)
SpectrumValue operator<<(int n) const
left shift operator
friend double Sum(const SpectrumValue &x)
double Prod(const SpectrumValue &x)
friend double Norm(const SpectrumValue &x)
SpectrumValue Log(const SpectrumValue &arg)
void Subtract(const SpectrumValue &x)
Subtracts a SpectrumValue (element by element subtraction)
SpectrumModelUid_t GetSpectrumModelUid() const
void ChangeSign()
Change the values sign.
SpectrumValue & operator=(double rhs)
Assign each component of *this to the value of the Right Hand Side of the operator.
friend SpectrumValue operator*(const SpectrumValue &lhs, const SpectrumValue &rhs)
multiplication component-by-component (Schur product)
Set of values corresponding to a given SpectrumModel.
SpectrumValue & operator*=(const SpectrumValue &rhs)
Multiply *this by the Right Hand Side of the operator, component by component.
Values::iterator ValuesEnd()
SpectrumValue Pow(double lhs, const SpectrumValue &rhs)
void Exp(double base)
Modifies each element so that it is the base raised to each element value.
double Norm(const SpectrumValue &x)
SpectrumValue & operator/=(const SpectrumValue &rhs)
Divide *this by the Right Hand Side of the operator, component by component.
Bands::const_iterator ConstBandsBegin() const
SpectrumValue & operator+=(const SpectrumValue &rhs)
Add the Right Hand Side of the operator to *this, component by component.
SpectrumValue Log2(const SpectrumValue &arg)
friend SpectrumValue operator-(const SpectrumValue &lhs, const SpectrumValue &rhs)
subtraction operator
SpectrumValue operator>>(int n) const
right shift operator
const double & ValuesAt(uint32_t pos) const
Get the value element at the position.
void ShiftRight(int n)
Shift the values to the right.
Forward calls to a chain of Callback.
void Add(const SpectrumValue &x)
Add a SpectrumValue (element to element addition)
friend SpectrumValue Pow(const SpectrumValue &lhs, double rhs)
std::ostream & operator<<(std::ostream &os, const Angles &a)
void Multiply(const SpectrumValue &x)
Multiplies for a SpectrumValue (element to element multiplication)
uint32_t SpectrumModelUid_t
Uid for SpectrumModels.
friend SpectrumValue operator+(const SpectrumValue &lhs, const SpectrumValue &rhs)
addition operator
Values::const_iterator ConstValuesBegin() const
void Log()
Applies a Log to each the elements.
friend SpectrumValue operator/(const SpectrumValue &lhs, const SpectrumValue &rhs)
division component-by-component
void Divide(const SpectrumValue &x)
Divides by a SpectrumValue (element to element division)
Ptr< const SpectrumModel > m_spectrumModel
The spectrum model.
SpectrumValue & operator-=(const SpectrumValue &rhs)
Subtract the Right Hand Side of the operator from *this, component by component.
std::vector< double > Values
Container for element values.