30 #ifndef ERROR_COUNTERS_H 31 #define ERROR_COUNTERS_H 34 #include <itpp/itexports.h> 80 BERC(
int indelay = 0,
int inignorefirst = 0,
int inignorelast = 0);
82 void count(
const bvec &in1,
const bvec &in2);
85 void count(
const bool x);
88 void estimate_delay(
const bvec &in1,
const bvec &in2,
int mindelay = -100,
91 void clear() { errors = 0; corrects = 0; }
114 static double count_errors(
const bvec &in1,
const bvec &in2,
115 int indelay = 0,
int inignorefirst = 0,
116 int inignorelast = 0);
137 BLERC(
int blocksize);
139 void set_blocksize(
int inblocksize,
bool clear =
true);
141 void count(
const bvec &in1,
const bvec &in2);
144 void count(
const bool x);
146 void clear() { errors = 0; corrects = 0; }
167 #endif // #ifndef ERROR_COUNTERS_H double get_errorrate() const
Returns the block error rate.
void clear()
Clear the block error counter.
double get_errors() const
Returns the number of block errors.
Class for counting block error rates.
double get_errors() const
Returns the counted number of bit errors.
double get_total_blocks() const
Returns the total number of block processed.
double get_errorrate() const
Returns the estimated bit error rate.
int get_delay() const
Return the delay, assumed or estimated, between in1 and in2.
double get_total_bits() const
Returns the total number of bits processed.
Bit Error Rate Counter (BERC) Class.
double get_corrects() const
Returns the number of correct blocks.
void clear()
Clears the bit error counter.
double get_corrects() const
Returns the counted number of corectly received bits.
Templated Vector Class Definitions.