83 const Size verbose_level)
const;
90 const Size verbose_level)
const;
A container for features.
Definition FeatureMap.h:78
ILP-based decharging: pick the maximum-log-score subset of charge-pair edges that yields a consistent...
Definition ILPDCWrapper.h:46
double computeSliceOld_(const FeatureMap &fm, PairsType &pairs, const PairsIndex margin_left, const PairsIndex margin_right, const Size verbose_level) const
Legacy slice solver kept for comparison / regression testing — kept in lock-step with computeSlice_.
std::vector< ChargePair > PairsType
Container of putative charge-pair edges between features.
Definition ILPDCWrapper.h:50
double getLogScore_(const PairsType::value_type &pair, const FeatureMap &fm) const
Log-score of one putative charge-pair edge given the underlying feature intensities and the recorded ...
ILPDCWrapper()
Default constructor; the class is stateless and only exposes compute()
double computeSlice_(const FeatureMap &fm, PairsType &pairs, const PairsIndex margin_left, const PairsIndex margin_right, const Size verbose_level) const
Solve one slice of the edge graph (the new clique-based solver) — see compute() for the externally vi...
std::map< std::string, std::set< Size > > FeatureType_
Internal lookup: feature id (as std::string) -> set of compatible charge-annotation variant indices e...
Definition ILPDCWrapper.h:96
virtual ~ILPDCWrapper()
Destructor.
void updateFeatureVariant_(FeatureType_ &f_set, const std::string &rota_l, const Size &v) const
Record one more charge-annotation variant v for the feature whose rotated id is rota_l in f_set.
double compute(const FeatureMap &fm, PairsType &pairs, Size verbose_level) const
Solve the ILP on pairs to find the max-log-score subset of consistent charge-pair edges.
PairsType::size_type PairsIndex
Index type into PairsType, used for slicing.
Definition ILPDCWrapper.h:52
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19