A Discrete-Event Network Simulator
API
ns3::JakesProcess::Oscillator Struct Reference

This class Represents a single oscillator. More...

+ Collaboration diagram for ns3::JakesProcess::Oscillator:

Public Member Functions

 Oscillator (std::complex< double > amplitude, double initialPhase, double omega)
 Initiate oscillator with complex amplitude, initial phase and rotation speed. More...
 
std::complex< double > GetValueAt (Time t) const
 Get the complex amplitude at a given moment. More...
 

Public Attributes

std::complex< double > m_amplitude
 Complex number $Re=\cos(\psi_n), Im = i\sin(\psi_n)]$. More...
 
double m_omega
 Rotation speed of the oscillator $\omega_d \cos(\alpha_n)$. More...
 
double m_phase
 Phase $\phi_n$ of the oscillator. More...
 

Detailed Description

This class Represents a single oscillator.

Definition at line 87 of file jakes-process.h.

Constructor & Destructor Documentation

◆ Oscillator()

ns3::JakesProcess::Oscillator::Oscillator ( std::complex< double >  amplitude,
double  initialPhase,
double  omega 
)

Initiate oscillator with complex amplitude, initial phase and rotation speed.

Represents a single oscillator.

Parameters
amplitudeinitial complex amplitude
initialPhaseinitial phase
omegarotation speed

Definition at line 34 of file jakes-process.cc.

Member Function Documentation

◆ GetValueAt()

std::complex< double > ns3::JakesProcess::Oscillator::GetValueAt ( Time  t) const

Get the complex amplitude at a given moment.

Parameters
ttime instant
Returns
the complex amplitude

Definition at line 41 of file jakes-process.cc.

References ns3::Time::GetSeconds().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_amplitude

std::complex<double> ns3::JakesProcess::Oscillator::m_amplitude

Complex number $Re=\cos(\psi_n), Im = i\sin(\psi_n)]$.

Definition at line 103 of file jakes-process.h.

◆ m_omega

double ns3::JakesProcess::Oscillator::m_omega

Rotation speed of the oscillator $\omega_d \cos(\alpha_n)$.

Definition at line 105 of file jakes-process.h.

◆ m_phase

double ns3::JakesProcess::Oscillator::m_phase

Phase $\phi_n$ of the oscillator.

Definition at line 104 of file jakes-process.h.


The documentation for this struct was generated from the following files: