23 std::vector<double>
snr;
57 std::string
to_json(uint64_t timestamp);
69 bool save(std::string json, std::string path);
A class to store detection data.
Definition: Detection.h:14
std::vector< double > get_snr()
Detections in SNR.
Definition: Detection.cpp:36
std::string to_json(uint64_t timestamp)
Generate JSON of the detections and metadata.
Definition: Detection.cpp:46
size_t get_nDetections()
Get number of detections.
Definition: Detection.cpp:41
std::vector< double > get_delay()
Get detections in delay.
Definition: Detection.cpp:26
std::vector< double > get_doppler()
Get detections in Doppler.
Definition: Detection.cpp:31
Detection(std::vector< double > delay, std::vector< double > doppler, std::vector< double > snr)
Constructor.
Definition: Detection.cpp:12
std::string delay_bin_to_km(std::string json, uint32_t fs)
Update JSON to convert delay bins to km.
Definition: Detection.cpp:86
bool save(std::string json, std::string path)
Append the detections to a save file.
Definition: Detection.cpp:107
std::vector< double > delay
Detections in delay (bins).
Definition: Detection.h:17
std::vector< double > snr
Detections in SNR.
Definition: Detection.h:23
std::vector< double > doppler
Detections in Doppler (Hz).
Definition: Detection.h:20