39#ifndef MCLINKEXTENDED_H
40#define MCLINKEXTENDED_H
94 virtual int command(
int,
const char *
const *)
override;
109 virtual double getBER()
override;
119 void mul_matrix(
double (&A)[3][3],
const double (&B)[3][3]);
127 void pow_matrix(
const double (&A)[3][3],
int n,
double (&R)[3][3]);
MCLinkExtended class stores and updates the probabilities and the channel state for UnderwaterHMMPhys...
Definition mclinkextended.h:49
MCLinkExtended()
Definition mclinkextended.cpp:107
virtual double getBER() override
Definition mclinkextended.cpp:226
double P[3][3]
Definition mclinkextended.h:135
virtual ChState updateChState() override
Definition mclinkextended.cpp:183
double p_bm
Definition mclinkextended.h:134
double p_gm
Definition mclinkextended.h:131
virtual ~MCLinkExtended()
Definition mclinkextended.h:80
double p_mb
Definition mclinkextended.h:133
double p_mg
Definition mclinkextended.h:132
double ber_medium
Definition mclinkextended.h:130
void pow_matrix(const double(&A)[3][3], int n, double(&R)[3][3])
Definition mclinkextended.cpp:161
virtual int command(int, const char *const *) override
Definition mclinkextended.cpp:239
void mul_matrix(double(&A)[3][3], const double(&B)[3][3])
Definition mclinkextended.cpp:141
MCLink class models the BER of a directed link between two nodes. The base class allows for GOOD/BAD ...
Definition mclink.h:53
ChState ch_state
Definition mclink.h:131
double p_gb
Definition mclink.h:127
double ber_good
Definition mclink.h:125
ChState
Definition mclink.h:58
@ GOOD
Definition mclink.h:58
double p_bg
Definition mclink.h:128
double ber_bad
Definition mclink.h:126
double step_period
Definition mclink.h:130
Definition of MCLink class.