mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
added BCH(127, 64) T=10 example
This commit is contained in:
parent
451bc4e5cc
commit
ea07a593d7
1 changed files with 22 additions and 0 deletions
|
|
@ -152,6 +152,17 @@ int main()
|
|||
CODE::BoseChaudhuriHocquenghemDecoder<6, 1, 5, GF> decoder;
|
||||
bch_test(&encoder, &decoder, 1000000);
|
||||
}
|
||||
if (1) {
|
||||
// BCH(127, 64) T=10
|
||||
typedef CODE::GaloisField<7, 0b10001001, uint8_t> GF;
|
||||
GF instance;
|
||||
CODE::BoseChaudhuriHocquenghemEncoder<127, 64> encoder({
|
||||
0b10001001, 0b10001111, 0b10011101,
|
||||
0b11110111, 0b10111111, 0b11010101,
|
||||
0b10000011, 0b11101111, 0b11001011});
|
||||
CODE::BoseChaudhuriHocquenghemDecoder<20, 1, 64, GF> decoder;
|
||||
bch_test(&encoder, &decoder, 10000);
|
||||
}
|
||||
if (1) {
|
||||
// BCH(255, 131) T=18
|
||||
typedef CODE::GaloisField<8, 0b100011101, uint8_t> GF;
|
||||
|
|
@ -208,6 +219,17 @@ int main()
|
|||
CODE::BoseChaudhuriHocquenghemDecoderReference<6, 1, 5, GF> decoder;
|
||||
bch_reference_test(&encoder, &decoder, 1000000);
|
||||
}
|
||||
if (1) {
|
||||
// BCH(127, 64) T=10
|
||||
typedef CODE::GaloisField<7, 0b10001001, uint8_t> GF;
|
||||
GF instance;
|
||||
CODE::BoseChaudhuriHocquenghemEncoderReference<20, 1, 64, GF> encoder({
|
||||
0b10001001, 0b10001111, 0b10011101,
|
||||
0b11110111, 0b10111111, 0b11010101,
|
||||
0b10000011, 0b11101111, 0b11001011});
|
||||
CODE::BoseChaudhuriHocquenghemDecoderReference<20, 1, 64, GF> decoder;
|
||||
bch_reference_test(&encoder, &decoder, 10000);
|
||||
}
|
||||
if (1) {
|
||||
// BCH(255, 131) T=18
|
||||
typedef CODE::GaloisField<8, 0b100011101, uint8_t> GF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue