11 #include <OpenMS/OpenMSConfig.h>
26 static void getKeys(
const T&
object, std::vector<String>& keys)
65 template<
typename T_In,
typename T_Out>
69 min_frequency = std::min(100.0f, std::max(0.0f, min_frequency));
71 std::map<String, UInt> counter;
72 typedef std::vector<String> KeysType;
74 for (
typename T_In::const_iterator it = it_start; it != it_end; ++it)
76 getter.getKeys(*it, keys);
77 for (KeysType::const_iterator itk = keys.begin(); itk != keys.end(); ++itk)
83 const UInt required_counts =
UInt(min_frequency / 100.0 * std::distance(it_start, it_end));
85 for (
const auto& [key, count] : counter)
87 if (count >= required_counts)
89 common_keys.insert(common_keys.end(), key);
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22