A class to store detection data.
More...
#include <Detection.h>
|
| std::vector< double > | delay |
| | Detections in delay (bins). More...
|
| |
| std::vector< double > | doppler |
| | Detections in Doppler (Hz). More...
|
| |
| std::vector< double > | snr |
| | Detections in SNR. More...
|
| |
A class to store detection data.
- Author
- 30hours
◆ Detection() [1/2]
| Detection::Detection |
( |
std::vector< double > |
delay, |
|
|
std::vector< double > |
doppler, |
|
|
std::vector< double > |
snr |
|
) |
| |
Constructor.
- Parameters
-
| delay | Detections in delay (bins). |
| doppler | Detections in Doppler (Hz). |
- Returns
- The object.
◆ Detection() [2/2]
| Detection::Detection |
( |
double |
delay, |
|
|
double |
doppler, |
|
|
double |
snr |
|
) |
| |
Constructor for single detection.
- Parameters
-
- Returns
- The object.
◆ delay_bin_to_km()
| std::string Detection::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.
◆ get_delay()
| std::vector< double > Detection::get_delay |
( |
| ) |
|
Get detections in delay.
- Returns
- Detections in delay (bins).
◆ get_doppler()
| std::vector< double > Detection::get_doppler |
( |
| ) |
|
Get detections in Doppler.
- Returns
- Detections in Doppler (Hz).
◆ get_nDetections()
| size_t Detection::get_nDetections |
( |
| ) |
|
Get number of detections.
- Returns
- Number of detections
◆ get_snr()
| std::vector< double > Detection::get_snr |
( |
| ) |
|
Detections in SNR.
- Returns
- Detections in SNR.
◆ save()
| bool Detection::save |
( |
std::string |
json, |
|
|
std::string |
path |
|
) |
| |
Append the detections to a save file.
- Parameters
-
| json | JSON string of detections and metadata. |
| path | Path of file to save. |
- Returns
- True is save is successful.
◆ to_json()
| std::string Detection::to_json |
( |
uint64_t |
timestamp | ) |
|
Generate JSON of the detections and metadata.
- Parameters
-
| timestamp | Current time (POSIX ms). |
- Returns
- JSON string.
◆ delay
| std::vector<double> Detection::delay |
|
private |
Detections in delay (bins).
◆ doppler
| std::vector<double> Detection::doppler |
|
private |
Detections in Doppler (Hz).
◆ snr
| std::vector<double> Detection::snr |
|
private |
The documentation for this class was generated from the following files: