Programa para el testeo de un canal BSC.
- Autor
- Fernando Pujaico Rivera
- Fecha
- 07-05-2011
#include <config.h>
#include <stdlib.h>
#include <pds/pdscm.h>
int main(int argc, char** argv)
{
PdsBVector *X=NULL;
PdsBVector *Y=NULL;
X=pds_bvector_new(32);
Y=pds_bvector_new(32);
printf("BSC\np=0.1\n\n");
pds_bvector_init_rand(X,0.5);
printf("Input : ");
pds_bvector_printf(X);
printf("Output: ");
pds_bvector_printf(Y);
pds_bvector_free(Y);
pds_bvector_free(X);
printf("\n");
return EXIT_SUCCESS;
}