Skip to content

Commit bb5c4a4

Browse files
committed
pucch simulator: refactor
Simplify the code by moving format-specific structures and methods in dedicated classes that are then injected into the main simulator.
1 parent e6d2b2a commit bb5c4a4

File tree

15 files changed

+2017
-1633
lines changed

15 files changed

+2017
-1633
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ Function `combinePUSCHSims` can be used to obtain a summary of several simulatio
170170
```
171171
See `help combinePUSCHSims` for more details.
172172
173-
### apps/simulators/PUCCHBLER
174-
An instance of the *PUCCHBLER* class provides a simulator object for the evaluation of the performance (in terms of BLER, detection and false detection probability, depending on the case) of the PUCCH processors, for PUCCH Formats 0, 1 and 2. The following example shows how to evaluate the PUCCH Format 2 BLER at `SNR = -10:0` dB for the default configuration. For more information, enter `help PUCCHBLER` at the MATLAB command line.
173+
### apps/simulators/PUCCHPERF
174+
An instance of the *PUCCHPERF* class provides a simulator object for the evaluation of the performance (in terms of BLER, detection and false detection probability, depending on the case) of the PUCCH processors, for PUCCH Formats 0, 1 and 2. The following example shows how to evaluate the PUCCH Format 2 BLER at `SNR = -10:0` dB for the default configuration. For more information, enter `help PUCCHPERF` at the MATLAB command line.
175175
```matlab
176-
sim = PUCCHBLER % Create a PUCCHBLER object.
176+
sim = PUCCHPERF % Create a PUCCHPERF object.
177177
sim(-10:10) % Run the simulation.
178178
sim.BlockErrorRateMATLAB % Display the evaluated BLER.
179179
sim.plot % Plot the evaluated BLER.
180-
save my_sim.mat sim % Save the PUCCHBLER object, including the simulation results,
180+
save my_sim.mat sim % Save the PUCCHPERF object, including the simulation results,
181181
% to file my_sim.mat.
182182
```
183183

apps/simulators/PUCCHBLER/@PUCCHBLER/PUCCHBLER.m

Lines changed: 0 additions & 1086 deletions
This file was deleted.

apps/simulators/PUCCHBLER/@PUCCHBLER/setupImpl.m

Lines changed: 0 additions & 305 deletions
This file was deleted.

0 commit comments

Comments
 (0)