Products & Services Solutions Academia Support User Community Company

Learn more about Communications Toolbox   

distspec - Compute distance spectrum of convolutional code

Syntax

spect = distspec(trellis,n)
spect = distspec(trellis)

Description

spect = distspec(trellis,n) computes the free distance and the first n components of the weight and distance spectra of a linear convolutional code. Because convolutional codes do not have block boundaries, the weight spectrum and distance spectrum are semi-infinite and are most often approximated by the first few components. The input trellis is a valid MATLAB trellis structure, as described in Trellis Description of a Convolutional Encoder. The output, spect, is a structure with these fields:

FieldMeaning
spect.dfreeFree distance of the code. This is the minimum number of errors in the encoded sequence required to create an error event.
spect.weightA length-n vector that lists the total number of information bit errors in the error events enumerated in spect.event.
spect.eventA length-n vector that lists the number of error events for each distance between spect.dfree and spect.dfree+n-1. The vector represents the first n components of the distance spectrum.

spect = distspec(trellis) is the same as spect = distspec(trellis,1).

Examples

The example below performs these tasks:

trellis = poly2trellis([5 4],[23 35 0; 0 5 13])
spect = distspec(trellis,4)
berub = bercoding(1:10,'conv','hard',2/3,spect); % BER bound
berfit(1:10,berub); ylabel('Upper Bound on BER'); % Plot.

The output and plot are below.

trellis = 

     numInputSymbols: 4
    numOutputSymbols: 8
           numStates: 128
          nextStates: [128x4 double]
             outputs: [128x4 double]


spect = 

     dfree: 5
    weight: [1 6 28 142]
     event: [1 2 8 25]

Algorithm

The function uses a tree search algorithm implemented with a stack, as described in [2].

References

[1] Bocharova, I. E., and B. D. Kudryashov, "Rational Rate Punctured Convolutional Codes for Soft-Decision Viterbi Decoding," IEEE Transactions on Information Theory, Vol. 43, No. 4, July 1997, pp. 1305–1313.

[2] Cedervall, M., and R. Johannesson, "A Fast Algorithm for Computing Distance Spectrum of Convolutional Codes," IEEE Transactions on Information Theory, Vol. 35, No. 6, Nov. 1989, pp. 1146–1159.

[3] Chang, J., D. Hwang, and M. Lin, "Some Extended Results on the Search for Good Convolutional Codes," IEEE Transactions on Information Theory, Vol. 43, No. 5, Sep. 1997, pp. 1682–1697.

[4] Frenger, P., P. Orten, and T. Ottosson, "Comments and Additions to Recent Papers on New Convolutional Codes," IEEE Transactions on Information Theory, Vol. 47, No. 3, March 2001, pp. 1199–1201.

See Also

bercoding, iscatastrophic, istrellis, and poly2trellis

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS