30 std::vector<std::vector<T>>
data;
54 void set_row(uint32_t i, std::vector<T> row);
60 void set_col(uint32_t i, std::vector<T> col);
77 std::vector<T>
get_row(uint32_t row);
82 std::vector<T>
get_col(uint32_t col);
99 std::string
to_json(uint64_t timestamp);
111 bool save(std::string json, std::string path);
A class to store an ambiguity map.
Definition: Map.h:20
uint32_t doppler_hz_to_bin(double dopplerHz)
Convert a Doppler value from Hz to bins.
Definition: Map.cpp:102
uint32_t get_nCols()
Get the number of columns in the map.
Definition: Map.cpp:47
std::vector< T > get_col(uint32_t col)
Get a column from the 2D map.
Definition: Map.cpp:59
uint32_t nRows
Number of rows.
Definition: Map.h:23
std::vector< T > get_row(uint32_t row)
Get a row from the 2D map.
Definition: Map.cpp:53
Map(uint32_t nRows, uint32_t nCols)
Constructor.
Definition: Map.cpp:13
std::string to_json(uint64_t timestamp)
Generate JSON of the map and metadata.
Definition: Map.cpp:115
std::vector< std::vector< T > > data
Map data to store.
Definition: Map.h:30
uint32_t get_nRows()
Get the number of rows in the map.
Definition: Map.cpp:41
uint32_t nCols
Number of columns.
Definition: Map.h:26
std::deque< double > doppler
Doppler units of map data (Hz).
Definition: Map.h:36
double noisePower
Noise power of map (dB).
Definition: Map.h:39
std::deque< int > delay
Delay units of map data (bins).
Definition: Map.h:33
void set_col(uint32_t i, std::vector< T > col)
Update a column in the 2D map.
Definition: Map.cpp:32
Map< double > * get_map_db()
Get a copy of the map in dB units.
Definition: Map.cpp:72
void set_metrics()
Create map metrics (noise power, dynamic range).
Definition: Map.cpp:187
std::string delay_bin_to_km(std::string json, uint32_t fs)
Update JSON to convert delay bins to km.
Definition: Map.cpp:165
bool save(std::string json, std::string path)
Append the map to a save file.
Definition: Map.cpp:208
void print()
Print the map to stdout (for debugging).
Definition: Map.cpp:88
double maxPower
Dynamic range of map (dB).
Definition: Map.h:42
void set_row(uint32_t i, std::vector< T > row)
Update a row in the 2D map.
Definition: Map.cpp:22