A class to store an ambiguity map.
More...
#include <Map.h>
template<typename T>
class Map< T >
A class to store an ambiguity map.
References: Append to an existing array using rapidjson.
- Author
- 30hours
◆ Map()
template<class T >
| Map< T >::Map |
( |
uint32_t |
nRows, |
|
|
uint32_t |
nCols |
|
) |
| |
Constructor.
- Parameters
-
| nRows | Number of rows. |
| nCols | Number of columns. |
- Returns
- The object.
◆ delay_bin_to_km()
template<class T >
| std::string Map< T >::delay_bin_to_km |
( |
std::string |
json, |
|
|
uint32_t |
fs |
|
) |
| |
Update JSON to convert delay bins to km.
- Parameters
-
| json | Input JSON string with delay field. |
| fs | Sampling frequency (Hz). |
- Returns
- JSON string.
◆ doppler_hz_to_bin()
template<class T >
| uint32_t Map< T >::doppler_hz_to_bin |
( |
double |
dopplerHz | ) |
|
Convert a Doppler value from Hz to bins.
- Parameters
-
| dopplerHz | Doppler value (Hz). |
- Returns
- dopplerBin Doppler value (bins).
◆ get_col()
template<class T >
| std::vector< T > Map< T >::get_col |
( |
uint32_t |
col | ) |
|
Get a column from the 2D map.
- Parameters
-
| col | Index of column to get. |
- Returns
- Vector of data.
◆ get_map_db()
template<class T >
| Map< double > * Map< T >::get_map_db |
Get a copy of the map in dB units.
- Returns
- Pointer to dB map.
◆ get_nCols()
template<class T >
| uint32_t Map< T >::get_nCols |
Get the number of columns in the map.
- Returns
- Number of columns.
◆ get_nRows()
template<class T >
| uint32_t Map< T >::get_nRows |
Get the number of rows in the map.
- Returns
- Number of rows.
◆ get_row()
template<class T >
| std::vector< T > Map< T >::get_row |
( |
uint32_t |
row | ) |
|
Get a row from the 2D map.
- Parameters
-
- Returns
- Vector of data.
◆ print()
Print the map to stdout (for debugging).
- Returns
- Void.
◆ save()
template<class T >
| bool Map< T >::save |
( |
std::string |
json, |
|
|
std::string |
path |
|
) |
| |
Append the map to a save file.
- Parameters
-
| json | JSON string of map and metadata. |
| path | Path of file to save. |
- Returns
- True is save is successful.
◆ set_col()
template<class T >
| void Map< T >::set_col |
( |
uint32_t |
i, |
|
|
std::vector< T > |
col |
|
) |
| |
Update a column in the 2D map.
- Parameters
-
| i | Index of column to update. |
| col | Data to update. |
- Returns
- Void.
◆ set_metrics()
template<class T >
| void Map< T >::set_metrics |
Create map metrics (noise power, dynamic range).
- Returns
- Void.
◆ set_row()
template<class T >
| void Map< T >::set_row |
( |
uint32_t |
i, |
|
|
std::vector< T > |
row |
|
) |
| |
Update a row in the 2D map.
- Parameters
-
| i | Index of row to update. |
| row | Data to update. |
- Returns
- Void.
◆ to_json()
template<class T >
| std::string Map< T >::to_json |
( |
uint64_t |
timestamp | ) |
|
Generate JSON of the map and metadata.
- Returns
- JSON string.
◆ data
template<typename T >
| std::vector<std::vector<T> > Map< T >::data |
◆ delay
template<typename T >
| std::deque<int> Map< T >::delay |
Delay units of map data (bins).
◆ doppler
template<typename T >
| std::deque<double> Map< T >::doppler |
Doppler units of map data (Hz).
◆ maxPower
template<typename T >
| double Map< T >::maxPower |
Dynamic range of map (dB).
◆ nCols
◆ noisePower
template<typename T >
| double Map< T >::noisePower |
◆ nRows
The documentation for this class was generated from the following files: