Closed erichaydel closed 1 year ago
My original conception of the API was for BCH.detect()
to "detect errors". So bch.detect(valid_codeword) == False
has detected no errors and bch.detect(invalid_codeword) == True
has detected at least one error. So I think it's correct as intended.
I'm open to other ideas for a more clear API, though.
Ah I was thinking it meant "detect valid codeword". Yeah this is OBE then
Example code: