24 #ifndef SKA_CHEETAH_RFIM_METRICS_H 25 #define SKA_CHEETAH_RFIM_METRICS_H 26 #include "cheetah/data/TimeFrequencyFlags.h" 45 Metrics(TimeFrequencyFlagsType
const& expected, TimeFrequencyFlagsType
const& actual);
51 std::size_t
compare(TimeFrequencyFlagsType
const& expected, TimeFrequencyFlagsType
const& actual);
82 float false_positives_percentage()
const;
93 float false_negatives_percentage()
const;
96 TimeFrequencyFlagsType _false_positives;
97 TimeFrequencyFlagsType _false_negatives;
98 std::size_t _false_positives_num;
99 std::size_t _false_negatives_num;
100 std::size_t _correct_num;
101 std::size_t _rfi_num;
109 #endif // SKA_CHEETAH_RFIM_METRICS_H float correct_percentage() const
return the total of any correct flags as a percentage
float rfi_detected_percentage() const
return the total of any correct flags as a percentage
TimeFrequencyFlagsType const & false_negatives() const
returnn a set of flags indicating each false negative found
std::size_t num_correct() const
return the total of any correctly identified flags found
Some limits and constants for FLDO.
std::size_t num_false_positives() const
return the total of any false positives detected
std::size_t compare(TimeFrequencyFlagsType const &expected, TimeFrequencyFlagsType const &actual)
calculate the metrics by comparing the two sets of flags
std::size_t num_false_negatives() const
return the number of any false negatives detected
A class for analysing and storing the results of the difference between two sets of flags representin...
std::size_t num_rfi() const
return the number of rfi flags in the expected data
TimeFrequencyFlagsType const & false_positives() const
returnn a set of flags indicating each false positive fopund