]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/matlab/STC matlab implementation/calc_relative_payload.m
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
372378dc425bb91202f27b638e97d6e0a156ed70
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / matlab / STC matlab implementation / calc_relative_payload.m
1 function [ alpha ] = calc_relative_payload( code )\r
2 %CALC_CODE_RATE calculates relative payload (1-rate) of a given code.\r
3 %\r
4 % Tomas Filler (tomas.filler@binghamton.edu)\r
5 % http://dde.binghamton.edu/filler\r
6 \r
7 alpha = sum(code.shift)/code.n;\r
8 end\r