diff options
Diffstat (limited to 'gr-fec/lib/awgn_bp.cc')
-rw-r--r-- | gr-fec/lib/awgn_bp.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gr-fec/lib/awgn_bp.cc b/gr-fec/lib/awgn_bp.cc index 5d6d3bb6f8..43b73cf875 100644 --- a/gr-fec/lib/awgn_bp.cc +++ b/gr-fec/lib/awgn_bp.cc @@ -134,7 +134,7 @@ void awgn_bp::update_vars() } } -std::vector<char> awgn_bp::get_estimate() { return estimate; } +std::vector<uint8_t> awgn_bp::get_estimate() { return estimate; } void awgn_bp::compute_init_estimate(std::vector<float> rx_word) { @@ -160,9 +160,9 @@ void awgn_bp::set_K(int k) { K = k; } int awgn_bp::get_K() { return K; } -std::vector<char> awgn_bp::get_syndrome(std::vector<char> codeword) +std::vector<uint8_t> awgn_bp::get_syndrome(std::vector<uint8_t> codeword) { - std::vector<char> synd; + std::vector<uint8_t> synd; synd.resize(N - K); GF2Vec in_bvec; in_bvec.set_vec(codeword); @@ -172,9 +172,9 @@ std::vector<char> awgn_bp::get_syndrome(std::vector<char> codeword) return synd; } -std::vector<char> awgn_bp::get_syndrome() +std::vector<uint8_t> awgn_bp::get_syndrome() { - std::vector<char> synd; + std::vector<uint8_t> synd; synd.resize(N - K); GF2Vec in_bvec; in_bvec.set_vec(estimate); @@ -184,9 +184,9 @@ std::vector<char> awgn_bp::get_syndrome() return synd; } -bool awgn_bp::is_codeword(std::vector<char> codeword) +bool awgn_bp::is_codeword(std::vector<uint8_t> codeword) { - std::vector<char> synd; + std::vector<uint8_t> synd; synd = get_syndrome(codeword); bool is_code; is_code = true; @@ -200,7 +200,7 @@ bool awgn_bp::is_codeword(std::vector<char> codeword) bool awgn_bp::is_codeword() { - std::vector<char> synd; + std::vector<uint8_t> synd; synd = get_syndrome(); bool is_code; is_code = true; @@ -216,7 +216,7 @@ void awgn_bp::set_max_iterations(int k) { max_iterations = k; } int awgn_bp::get_max_iterations() { return max_iterations; } -std::vector<char> awgn_bp::decode(std::vector<float> rx_word, int* niteration) +std::vector<uint8_t> awgn_bp::decode(std::vector<float> rx_word, int* niteration) { *niteration = 0; compute_init_estimate(rx_word); |