## 5 Feasibility Study Through System Simulations
### Generation of Datasets of Fingerprints
#### 5.2.4 Generation of Moving Tiles
```
Input:\(iX,iY,N_{SS},S_{S}\)\(\triangleright\)\(iX,iY\) are the coordinates of the tile in the scenario \(S_{T}\gets N_{SS}\times S_{S}\)\(\triangleright\)Side length of the tile \(\sigma\gets 3\)\(\triangleright\)Standard deviation in the radio channel model \(vBSindexes\leftarrow[0,1,2,3]\)\(\triangleright\)Indexes for four base stations \(vBScoordX\leftarrow[0,15000,0,15000]\)\(\triangleright\)Base station X coordinates in mm \(vBScoordY\leftarrow[0,0,7000,7000]\)\(\triangleright\)Base station Y coordinates in mm \(TileDataStructure\leftarrow[][][][]\)\(\triangleright\)Data structure to store fingerprints related to the tile \(SubTilesCenterPositStruct\leftarrow[][][][]\)\(\triangleright\)Data structure to store sub-tile center positions \(indexSY\gets 0\)\(\triangleright\)Sub-tile index along Y while\(indexSY<N_{SS}\)do\(\triangleright\)For each sub-tile along Y \(SubTileCenterPositionY\gets indexSY\times S_{S}+\frac{S_{S}}{2}-\frac{S_{T}}{2}+iY\)\(\triangleright\)Sub-tile center position Y \(indexSX\gets 0\)\(\triangleright\)Sub-tile index along X while\(indexSX<N_{SS}\)do\(\triangleright\)For each sub-tile along X \(SubTileCenterPositionX\gets indexSX\times S_{S}+\frac{S_{S}}{2}-\frac{S_{T}}{2}+iX\)\(\triangleright\)Sub-tile center pos. X for\(indexBS\in vBSindexes\)do\(\triangleright\)For each base station index \(\triangleright\)Distance along X from sub-tile center to the indexed base station in mm \(d_{X}\gets nBScoordX[indexBS]-SubTileCenterPositionX\) \(\triangleright\)Distance along Y from sub-tile center to the indexed base station in mm \(d_{Y}=vBScoordY[indexBS]-SubTileCenterPositionY\) \(d_{mm}\leftarrow\sqrt{d_{X}^{2}+d_{Y}^{2}}\)\(\triangleright\)Dist. from sub-tile to the indexed base station in mm \(d=d_{mm}/1000\)\(\triangleright\)Distance from sub-tile to the indexed base station in m \(L\gets L(d)\)\(\triangleright\)Path loss for distance \(d\) from Equation (7)\(S\leftarrow\mathcal{N}(0,\sigma^{2})\)\(\triangleright\)Shadow fading from Equation (8) \(H\gets L+S\)\(\triangleright\)Radio channel model realization (Fingerprint). Equation (9)\(TileDataStructure[indexBS][indexSX][indexSY]\gets H\)\(\triangleright\)Sub-tile fingerprint \(SubTilesCenterPositStruct[indexSX][indexSY][0]\gets SubTileCenterPositionX\) \(SubTilesCenterPositStruct[indexSX][indexSY][1]\gets SubTileCenterPositionY\) endfor \(indexSX\gets indexSX+1\)\(\triangleright\)Next sub-tile index along X endwhile \(indexSY\gets indexSY+1\)\(\triangleright\)Next sub-tile index along Y endwhile Return \(TileDataStructure,SubTilesCenterPositStruct\)
```
**Pseudocode 4** Function for generating an individual tile - \(FTile()\)
``` Input:\(iX,iY,N_{SS},S_{S}\)\(\triangleright\)\(iX,iY\) are the coordinates of the tile in the scenario \(S_{T}\gets N_{SS}\times S_{S}\)\(\triangleright\)Side length of the tile \(\sigma\gets 3\)\(\triangleright\)Standard deviation in the radio channel model \(vBSindexes\leftarrow[0,1,2,3]\)\(\triangleright\)Indexes for four base stations \(vBScoordX\leftarrow[0,15000,0,15000]\)\(\triangleright\)Base station X coordinates in mm \(vBScoordY\leftarrow[0,0,7000,7000]\)\(\triangleright\)Base station Y coordinates in mm \(TileDataStructure\leftarrow[][][][][]\)\(\triangleright\)Data structure to store fingerprints related to the tile \(SubTilesCenterPositStruct\leftarrow[][][][]\)\(\triangleright\)Data structure to store sub-tile center positions \(indexSY\gets 0\)\(\triangleright\)Sub-tile index along Y while\(indexSY<N_{SS}\)do\(\triangleright\)For each sub-tile along Y \(SubTileCenterPositionY\gets indexSY\times S_{S}+\frac{S_{S}}{2}-\frac{S_{T}}{2}+iY\)\(\triangleright\)Sub-tile center position Y \(indexSX\gets 0\)\(\triangleright\)Sub-tile index along X while\(indexSX<N_{SS}\)do\(\triangleright\)For each sub-tile along X \(SubTileCenterPositionX\gets indexSX\times S_{S}+\frac{S_{S}}{2}-\frac{S_{T}}{2}+iX\)\(\triangleright\)Sub-tile center pos.