Description Usage Arguments Value Examples
This easy functions makes it possible to compare different coders. The function encode a random message, apply noise to the code and then decode the code. This will be computed many times and after all iterations the bit error rate will be calculated. This procedure is applied to different signal/noise ratios. The result will be printed in a graph, when visualization flag is set to TRUE.
1 2 3 4 | TurboSimulation(coder = NULL, permutation.type = "PRIMITIVE",
permutation.args = list(root = 0), decode.iterations = 5,
msg.length = 100, min.db = 0.1, max.db = 2, db.interval = 0.1,
iterations.per.db = 100, punctuation.matrix = NULL, visualize = FALSE)
|
coder |
Coder which will be created with |
permutation.type |
Type of permutation vector. |
permutation.args |
Arguments to the |
decode.iterations |
Amount of decoding iterations inside the turbo decoder. |
msg.length |
Length of the randomly created message. |
min.db |
Start value of the signal/noise ratio. |
max.db |
End value of the signal/noise ration. |
db.interval |
Interval which will be added to the actual signal/noise ratio after all iterations are applied. |
iterations.per.db |
Amount of iterations each signal/noise ration step. |
punctuation.matrix |
Punctuation matrix to puncture the output, will be created with |
visualize |
Flag to decide whether to create a visualization pdf or not. |
DataFrame which contains the bit error rate for each signal/noise ratio step.
1 2 3 4 5 6 | #all default parameters
TurboSimulation()
#without punctuation
coder <- ConvGenerateRscEncoder(2, 2, c(5, 7))
TurboSimulation(coder, "RANDOM", NULL, 5, 10, 0.01, 1, 0.05, 50, NULL, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.