21 #ifndef SPECTRUM_VALUE_H
22 #define SPECTRUM_VALUE_H
25 #include <ns3/simple-ref-count.h>
26 #include <ns3/spectrum-model.h>
33 typedef std::vector<double> Values;
504 void Subtract (
double s);
506 void Multiply (
double s);
508 void Divide (
double s);
510 void ShiftLeft (
int n);
511 void ShiftRight (
int n);
512 void Pow (
double exp);
513 void Exp (
double base);
Values::const_iterator ConstValuesEnd() const
SpectrumValue & operator*=(const SpectrumValue &rhs)
smart pointer class similar to boost::intrusive_ptr
SpectrumValue & operator/=(const SpectrumValue &rhs)
double Integral(const SpectrumValue &arg)
SpectrumValue operator>>(int n) const
SpectrumValue & operator+=(const SpectrumValue &rhs)
SpectrumModelUid_t GetSpectrumModelUid() const
friend SpectrumValue operator-(const SpectrumValue &lhs, const SpectrumValue &rhs)
Values::iterator ValuesEnd()
friend SpectrumValue Log(const SpectrumValue &arg)
friend SpectrumValue Log10(const SpectrumValue &arg)
friend SpectrumValue operator+(const SpectrumValue &lhs, const SpectrumValue &rhs)
SpectrumValue & operator-=(const SpectrumValue &rhs)
Bands::const_iterator ConstBandsEnd() const
SpectrumValue operator<<(int n) const
Ptr< const SpectrumModel > GetSpectrumModel() const
friend SpectrumValue Pow(const SpectrumValue &lhs, double rhs)
SpectrumValue Pow(double lhs, const SpectrumValue &rhs)
friend double Prod(const SpectrumValue &x)
Bands::const_iterator ConstBandsBegin() const
std::ostream & operator<<(std::ostream &os, const Angles &a)
friend SpectrumValue operator/(const SpectrumValue &lhs, const SpectrumValue &rhs)
SpectrumValue Log10(const SpectrumValue &arg)
friend SpectrumValue Log2(const SpectrumValue &arg)
double & operator[](size_t index)
Values::iterator ValuesBegin()
SpectrumValue Log(const SpectrumValue &arg)
double Norm(const SpectrumValue &x)
SpectrumValue & operator=(double rhs)
double Sum(const SpectrumValue &x)
Ptr< SpectrumValue > Copy() const
friend double Integral(const SpectrumValue &arg)
Values::const_iterator ConstValuesBegin() const
friend double Sum(const SpectrumValue &x)
friend double Norm(const SpectrumValue &x)
friend SpectrumValue operator*(const SpectrumValue &lhs, const SpectrumValue &rhs)
SpectrumValue Log2(const SpectrumValue &arg)
Set of values corresponding to a given SpectrumModel.
A template-based reference counting class.
double Prod(const SpectrumValue &x)