IT++ 4.3.1
|
Bit Error Rate Counter (BERC) Class. More...
#include <itpp/comm/error_counters.h>
Public Member Functions | |
BERC (int indelay=0, int inignorefirst=0, int inignorelast=0) | |
Constructor for the berc class. | |
void | count (const bvec &in1, const bvec &in2) |
Cumulative error counter. | |
void | count (const bool x) |
Variant of the cumulative error counter. Counts a bit error if x is true, and a correct bit otherwise. | |
void | estimate_delay (const bvec &in1, const bvec &in2, int mindelay=-100, int maxdelay=100) |
Run this member function if the delay between in1 and in2 is unknown. | |
void | clear () |
Clears the bit error counter. | |
void | report () const |
Writes an error report. | |
int | get_delay () const |
Return the delay, assumed or estimated, between in1 and in2. | |
double | get_errors () const |
Returns the counted number of bit errors. | |
double | get_corrects () const |
Returns the counted number of corectly received bits. | |
double | get_total_bits () const |
Returns the total number of bits processed. | |
double | get_errorrate () const |
Returns the estimated bit error rate. | |
Static Public Member Functions | |
static double | count_errors (const bvec &in1, const bvec &in2, int indelay=0, int inignorefirst=0, int inignorelast=0) |
static function to allow simple and fast count of bit-errors | |
Bit Error Rate Counter (BERC) Class.
Example:
Definition at line 67 of file error_counters.h.
itpp::BERC::BERC | ( | int | indelay = 0, |
int | inignorefirst = 0, | ||
int | inignorelast = 0 ) |
Constructor for the berc class.
Definition at line 45 of file error_counters.cpp.
void itpp::BERC::count | ( | const bvec & | in1, |
const bvec & | in2 ) |
void itpp::BERC::count | ( | const bool | x | ) |
Variant of the cumulative error counter. Counts a bit error if x is true, and a correct bit otherwise.
Definition at line 76 of file error_counters.cpp.
void itpp::BERC::estimate_delay | ( | const bvec & | in1, |
const bvec & | in2, | ||
int | mindelay = -100, | ||
int | maxdelay = 100 ) |
Run this member function if the delay between in1 and in2 is unknown.
Definition at line 85 of file error_counters.cpp.
References std::abs(), itpp::elem_mult(), itpp::sum(), and itpp::to_vec().
|
inline |
Clears the bit error counter.
Definition at line 91 of file error_counters.h.
void itpp::BERC::report | ( | ) | const |
Writes an error report.
Definition at line 107 of file error_counters.cpp.
|
inline |
Return the delay, assumed or estimated, between in1 and in2.
Definition at line 95 of file error_counters.h.
|
inline |
Returns the counted number of bit errors.
Definition at line 97 of file error_counters.h.
|
inline |
Returns the counted number of corectly received bits.
Definition at line 99 of file error_counters.h.
|
inline |
Returns the total number of bits processed.
Definition at line 101 of file error_counters.h.
|
inline |
Returns the estimated bit error rate.
Definition at line 103 of file error_counters.h.
|
static |
static function to allow simple and fast count of bit-errors
Returns the number of errors between in1 and in2. Typical usage:
Definition at line 127 of file error_counters.cpp.
References std::abs().