GithubHelp home page GithubHelp logo

Comments (4)

dchutchings avatar dchutchings commented on June 1, 2024

apologies - I should have read the documentation for komm.ConvolutionalStreamDecoder more carefully. So I am only noting here a difference in functionality with the Matlab Communications Toolbox implementation of Convolutional Coding and giving example code.

"... The output stream has a delay equal to kĻ„, where k is the number of input bits of the convolutional code..."

from komm.

rwnobrega avatar rwnobrega commented on June 1, 2024

Thanks a lot for your feedback!

But in fact this exact same functionality is implemented by MATLAB when 'TerminationMethod' is set to 'Continous'. See:

>> % MATLAB R2015a
>> convolutional_decoder = comm.ViterbiDecoder( ...
   'TrellisStructure', poly2trellis(3, [7 5]), ...
   'TracebackDepth', 10, ...
   'TerminationMethod', 'Continuous', ...
   'InputFormat', 'Hard');
>> convolutional_decoder.step([1 1 1 0 0 0 0 1 1 0 0 1 0 0 0 1 0 1 1 1]')'
ans =
     0     0     0     0     0     0     0     0     0     0
>> convolutional_decoder.step(zeros(2*10, 1))'
ans =
     1     0     1     1     1     0     1     1     0     0

This matches exactly the example in komm.ConvolutionalStreamDecoder documentation.

Alternatively, you may also want to take a look at komm.TerminatedConvolutionalCode, and use .encode and .decode methods.

from komm.

dchutchings avatar dchutchings commented on June 1, 2024

Cheers Roberto,
my mistake. I'd missed the 'trunc' that was in my previous Matlab code using vitdec. You're absolutely right and I should have used the terminated form for equivalence in komm.

I'd like again to express my appreciation to you for developing this package, which I'm now planning on switching to in my Digital Communications course.

from komm.

rwnobrega avatar rwnobrega commented on June 1, 2024

I'm glad to hear that. Reports, patches and suggestions are always welcome. I'm closing this issue.

from komm.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.