Agora
1.2.0
Agora project
|
Go to the documentation of this file.
26 Channel(
const Config*
const config, std::string& channel_type,
31 void ApplyChan(
const arma::cx_fmat& fmat_src, arma::cx_fmat& mat_dst,
32 const bool is_downlink,
const bool is_newChan);
36 void Awgn(
const arma::cx_fmat& fmat_src, arma::cx_fmat& fmat_dst)
const;
49 void Lte3gpp(
const arma::cx_fmat& fmat_src, arma::cx_fmat& fmat_dst);
static constexpr bool kPrintChannelOutput
Definition: channel.cc:9
size_t UeAntNum() const
Definition: config.h:41
size_t SampsPerSymbol() const
Definition: config.h:234
auto printf(const S &fmt, const T &... args) -> int
Definition: printf.h:631
Implementation file for the channel class.
@ kAwgn
Definition: channel.h:62
size_t BsAntNum() const
Definition: config.h:35
@ kRan3Gpp
Definition: channel.h:62
void ApplyChan(const arma::cx_fmat &fmat_src, arma::cx_fmat &mat_dst, const bool is_downlink, const bool is_newChan)
Definition: channel.cc:41
static double mean(const std::vector< double > in_vec)
Definition: timer.h:103
double noise_samp_std_
Definition: channel.h:61
snr
Definition: inspect_agora_results.m:118
constexpr std::chrono::duration< Rep, Period > abs(std::chrono::duration< Rep, Period > d)
Definition: chrono.h:1488
static constexpr bool kPrintSNRCheck
Definition: channel.cc:10
ChanModel
Definition: channel.h:62
Self defined functions for message storage and passing.
arma::cx_fmat h_
Definition: channel.h:64
size_t bs_ant_
Definition: channel.h:55
Channel(const Config *const config, std::string &channel_type, double channel_snr)
Definition: channel.cc:13
static constexpr double kMeanChannelGain
Definition: channel.cc:11
Channel * channel_
Definition: channel.h:54
double channel_snr_db_
Definition: channel.h:60
enum Channel::ChanModel chan_model_
void Lte3gpp(const arma::cx_fmat &fmat_src, arma::cx_fmat &fmat_dst)
Definition: channel.cc:115
void Awgn(const arma::cx_fmat &fmat_src, arma::cx_fmat &fmat_dst) const
Definition: channel.cc:84
size_t ue_ant_
Definition: channel.h:56
Definition: json.hpp:5213
const Config *const cfg_
Definition: channel.h:52
N_SC, NUM_UE, NUM_UE zeros()
size_t n_samps_
Definition: channel.h:57
noise
Definition: generate_data_dl.m:131
Declaration file for the configuration class which importants json configuration values into class va...
static void PrintMat(const arma::cx_fmat &c, const std::string &ss)
Definition: utils.cc:452
@ kRayleigh
Definition: channel.h:62
std::string sim_chan_model_
Definition: channel.h:59