A Binary Symetric Channel with crossover probability p. More...
#include <itpp/comm/channel.h>
Public Member Functions | |
BSC (double in_p=0.0) | |
Class constructor. Sets the error probability to p. | |
void | set_prob (double in_p) |
Set crossover (bit error) probability. | |
double | get_prob () const |
Get crossover (bit error) probability. | |
bvec | operator() (const bvec &input) |
Feed input through the BSC channel. | |
A Binary Symetric Channel with crossover probability p.
Input and output are of type bvec with 0 and 1. Example:
|
inline |
|
inline |
|
inline |
bvec itpp::BSC::operator() | ( | const bvec & | input | ) |
Feed input through the BSC channel.
Definition at line 1529 of file channel.cpp.
References itpp::length().
Generated on Tue Aug 17 2021 10:59:15 for IT++ by Doxygen 1.12.0