資源簡介
BCH碼的C語言實現,碼長31,信息位21,可糾2個錯
代碼片段和文件信息
/*
?*?File:????bch3121.c?
?*?Author:??Robert?Morelos-Zaragoza
?*
?*?%%%%%%%%%%%?Encoder/Decoder?for?a?(31215)?binary?BCH?code?%%%%%%%%%%%%%
?*
?* This?code?is?used?in?the?POCSAG?protocol?specification?for?pagers.
?*
?* In?this?specific?case?there?is?no?need?to?use?the?Berlekamp-Massey
?* algorithm?since?the?error?locator?polynomial?is?of?at?most?degree?2.
?* Instead?we?simply?solve?by?hand?two?simultaneous?equations?to?give
?*? the?coefficients?of?the?error?locator?polynomial?in?the?case?of?two?
?* errors.?In?the?case?of?one?error?the?location?is?given?by?the?first
?* syndrome.
?*
?* This?program?derivates?from?the?original?bch2.c?which?was?written
?* to?simulate?the?encoding/decoding?of?primitive?binary?BCH?codes.
?* Part?of?this?program?is?adapted?from?a?Reed-Solo
評論
共有 條評論