51 unsigned int L=1000000;
60 Pds::Vector Rho=Pds::GeomSpace(0.01,0.5,N);
65 if(n==0) L=200/1.0e-5;
76 BER.SetRaw(n,Us.Xor(Up).Mean());
79 std::cout<<
"p: "<<Rho[n]<<
"\tBERm: "<<BER[n]<<
"\n";
82 Pds::Octave::XLabel=
"Rho";
83 Pds::Octave::YLabel=
"BER";
84 Pds::Octave::Legend={
"Rho",
"BER"};
85 Pds::Octave::Plot::LogLogXYXY(Rho,Rho,Rho,BER,
"temporal.m",
"example_channel_model_bsc.png");
88 Pds::Octave::XLabel=
"BERteo";
89 Pds::Octave::YLabel=
"BER";
90 Pds::Octave::Legend={
"BERteo",
"BER"};
91 Pds::Octave::Plot::LogLogXYXY(Rho,BERteo,Rho,BER,
"temporal.m",
"example_channel_model_bsc_theoric.png");
double SymetricModel(double rho, unsigned int M)
Retorna la taza de erro de bit, , en el problema CEO binario simétrico de M fontes ,...
Pds::Matrix Bsc(const Pds::Vector &Us, const Pds::Vector &p)
Retorna el resultado de passar un vector por un banco de canales BSC de probabilidades .