|
Algorithm 1: Extraction of Spatial Information Based on MPCs |
|
|
Input: data files, each containing sample points of I/Q data from both moving and stationary antennas at - different angular position. |
|
|
Output: A file with spatial angles and corresponding power values . |
| 1. |
for each data file do
|
| 2. |
|
Read the file to extract the angular position and corresponding I/Q samples from both the moving antenna reception and the stationary antenna reception . |
| 3. |
|
Store as the and , as the in the mapping table . |
| 4. |
end |
| 5. |
for each in do
|
| 6. |
|
Extract the data and for sample points, respectively. |
| 7. |
|
Compute the ratio of to and store the result in the updated mapping table , with the calculation of performed as follows: |
| |
. |
| 8. |
end |
| 9. |
for , with a step size of do
|
| 10. |
|
for each in do
|
| 11. |
|
Calculate the received power at spatial angle based on Equation (16). |
| 12. |
|
end |
| 13. |
|
Store the current angle in the array , and the corresponding power in the array . |
| 14. |
end |
| 15. |
Save the arrays and as a file for further analysis. |