using namespace itpp;
using namespace std;
int main(int argc, char **argv)
{
{
cout << "========= RANDOM (3,6) CODE ==========" << endl;
"rand",
"500 10");
C1.save_code("random_3_6_code.it");
}
{
cout << "========= MACKAY CODE ==========" << endl;
C.save_code("mackay_204.33.484.it");
C1.save_code("mackay_204.33.484_opt.it");
}
{
cout << "========= IRREGULAR CODE 1000 BITS ==========" << endl;
"0 0.27684 0.28342 0 0 0 0 0 0.43974",
"0 0 0 0 0 0.01568 0.85244 0.13188",
"rand",
"500 8");
C.save_code("RU_1000.it");
}
{
cout << "========= IRREGULAR CODE 10000 BITS ==========" << endl;
"0 0.21991 0.23328 0.02058 0 0.08543 0.06540 0.04767 0.01912 "
"0 0 0 0 0 0 0 0 0 0.08064 0.22798",
"0 0 0 0 0 0 0 0.64854 0.34747 0.00399",
"rand",
"150 8");
C.save_code("RU_10000.it");
}
{
cout << "========= IRREGULAR CODE 100000 BITS ==========" << endl;
"0 0.1712 0.21053 0.00273 0 0 0.00009 0.15269 0.09227 "
"0.02802 0 0 0 0 0.01206 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "
"0.07212 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25830",
"0 0 0 0 0 0 0 0 0.33620 0.08883 0.57497",
"rand",
"40 4");
C.save_code("RU_100000.it");
}
return 0;
{
cout << "========= IRREGULAR CODE 1000000 BITS ==========" << endl;
"0 0.1712 0.21053 0.00273 0 0 0.00009 0.15269 0.09227 "
"0.02802 0 0 0 0 0.01206 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "
"0.07212 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25830",
"0 0 0 0 0 0 0 0 0.33620 0.08883 0.57497",
"rand",
"0 0");
C.save_code("RU_1000000.it");
}
}