IT++ Logo Newcom Logo

itpp::BLERC Class Reference

Class for counting block error rates. More...

#include <itpp/comm/error_counters.h>

List of all members.

Public Member Functions

 BLERC (void)
 Class constructor.
 BLERC (int blocksize)
 Specialised constructor.
void set_blocksize (int inblocksize, bool clear=true)
 Set the block size.
void count (const bvec &in1, const bvec &in2)
 Calculate the number of block errors between in1 and in2.
void clear ()
 Clear the block error counter.
double get_errors ()
 Returns the number of block errors.
double get_corrects ()
 Returns the number of correct blocks.
double get_errorrate ()
 Returns the block error rate.


Detailed Description

Class for counting block error rates.

Use this class to count block errors in binary vectors.

Definition at line 127 of file error_counters.h.


Constructor & Destructor Documentation

itpp::BLERC::BLERC ( void   ) 

Class constructor.

Definition at line 163 of file error_counters.cpp.

itpp::BLERC::BLERC ( int  blocksize  ) 

Specialised constructor.

Definition at line 166 of file error_counters.cpp.


Member Function Documentation

void itpp::BLERC::set_blocksize ( int  inblocksize,
bool  clear = true 
)

Set the block size.

Definition at line 170 of file error_counters.cpp.

void itpp::BLERC::count ( const bvec in1,
const bvec in2 
)

Calculate the number of block errors between in1 and in2.

Definition at line 181 of file error_counters.cpp.

References it_assert, and min.

void itpp::BLERC::clear (  )  [inline]

Clear the block error counter.

Definition at line 138 of file error_counters.h.

double itpp::BLERC::get_errors (  )  [inline]

Returns the number of block errors.

Definition at line 140 of file error_counters.h.

double itpp::BLERC::get_corrects (  )  [inline]

Returns the number of correct blocks.

Definition at line 142 of file error_counters.h.

double itpp::BLERC::get_errorrate (  )  [inline]

Returns the block error rate.

Definition at line 144 of file error_counters.h.


The documentation for this class was generated from the following files:
SourceForge Logo

Generated on Wed Mar 21 12:22:25 2007 for IT++ by Doxygen 1.4.7