|
libpappsomspp
Library for mass spectrometry
|
#include <massspectrumcombiner.h>
Public Member Functions | |
| MassSpectrumCombiner () | |
| Construct an uninitialized instance. More... | |
| MassSpectrumCombiner (std::vector< pappso_double > bins, int decimalPlaces=-1) | |
| MassSpectrumCombiner (int decimal_places) | |
| MassSpectrumCombiner (MassSpectrumCombinerCstSPtr other) | |
| MassSpectrumCombiner (const MassSpectrumCombiner &other) | |
| MassSpectrumCombiner (const MassSpectrumCombiner &&other) | |
| virtual | ~MassSpectrumCombiner () |
| Destruct the instance. More... | |
| std::vector< pappso_double >::const_iterator | begin () const |
| std::vector< pappso_double >::const_iterator | end () const |
| std::vector< pappso_double >::iterator | begin () |
| std::vector< pappso_double >::iterator | end () |
| void | setBins (std::vector< pappso_double > bins) |
| const std::vector< pappso_double > & | getBins () const |
| std::size_t | binCount () const |
| virtual MapTrace & | combine (MapTrace &map_trace, const Trace &trace) const |
| virtual MapTrace & | combine (MapTrace &map_trace_out, const MapTrace &map_trace_in) const |
Public Member Functions inherited from pappso::MassDataCombinerInterface | |
| MassDataCombinerInterface (int decimal_places=-1) | |
| virtual | ~MassDataCombinerInterface () |
| void | setDecimalPlaces (int value) |
| int | getDecimalPlaces () const |
| void | setFilterResampleKeepXRange (const FilterResampleKeepXRange &range) |
| virtual MapTrace & | combine (MapTrace &map_trace, Iterator begin, Iterator end) |
Protected Member Functions | |
| std::vector< pappso_double >::iterator | findBin (pappso_double mz) |
Find the bin that will contain mz. More... | |
Protected Attributes | |
| std::vector< pappso_double > | m_bins |
Protected Attributes inherited from pappso::MassDataCombinerInterface | |
| int | m_decimalPlaces = -1 |
| Number of decimals to use for the keys (x values) More... | |
| bool | m_isApplyXRangeFilter = false |
| FilterResampleKeepXRange | m_filterXRange |
Private Member Functions | |
| virtual MapTrace & | combineNoFilteringStep (MapTrace &map_trace, const Trace &trace) const =0 |
Additional Inherited Members | |
Public Types inherited from pappso::MassDataCombinerInterface | |
| using | Iterator = std::vector< const Trace * >::const_iterator |
Definition at line 29 of file massspectrumcombiner.h.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | ) |
Construct an uninitialized instance.
Definition at line 28 of file massspectrumcombiner.cpp.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | std::vector< pappso_double > | bins, |
| int | decimalPlaces = -1 |
||
| ) |
Definition at line 33 of file massspectrumcombiner.cpp.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | int | decimal_places | ) |
Definition at line 40 of file massspectrumcombiner.cpp.
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | MassSpectrumCombinerCstSPtr | other | ) |
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | const MassSpectrumCombiner & | other | ) |
| pappso::MassSpectrumCombiner::MassSpectrumCombiner | ( | const MassSpectrumCombiner && | other | ) |
|
virtual |
| std::vector< pappso_double >::iterator pappso::MassSpectrumCombiner::begin | ( | ) |
Definition at line 91 of file massspectrumcombiner.cpp.
References m_bins.
| std::vector< pappso_double >::const_iterator pappso::MassSpectrumCombiner::begin | ( | ) | const |
Definition at line 105 of file massspectrumcombiner.cpp.
References m_bins.
| std::size_t pappso::MassSpectrumCombiner::binCount | ( | ) | const |
Definition at line 119 of file massspectrumcombiner.cpp.
References m_bins.
|
virtual |
Implements pappso::MassDataCombinerInterface.
Definition at line 137 of file massspectrumcombiner.cpp.
References combineNoFilteringStep(), pappso::FilterResampleKeepXRange::filter(), pappso::MassDataCombinerInterface::m_filterXRange, and pappso::MassDataCombinerInterface::m_isApplyXRangeFilter.
|
virtual |
Implements pappso::MassDataCombinerInterface.
Definition at line 170 of file massspectrumcombiner.cpp.
References combineNoFilteringStep(), pappso::FilterResampleKeepXRange::filter(), pappso::MassDataCombinerInterface::m_filterXRange, and pappso::MassDataCombinerInterface::m_isApplyXRangeFilter.
|
privatepure virtual |
Implemented in pappso::MassSpectrumPlusCombiner, and pappso::MassSpectrumMinusCombiner.
Referenced by combine().
| std::vector< pappso_double >::iterator pappso::MassSpectrumCombiner::end | ( | ) |
Definition at line 98 of file massspectrumcombiner.cpp.
References m_bins.
| std::vector< pappso_double >::const_iterator pappso::MassSpectrumCombiner::end | ( | ) | const |
Definition at line 112 of file massspectrumcombiner.cpp.
References m_bins.
|
protected |
Find the bin that will contain mz.
Definition at line 128 of file massspectrumcombiner.cpp.
References m_bins, and pappso::unset.
| const std::vector< pappso_double > & pappso::MassSpectrumCombiner::getBins | ( | ) | const |
Definition at line 84 of file massspectrumcombiner.cpp.
References m_bins.
| void pappso::MassSpectrumCombiner::setBins | ( | std::vector< pappso_double > | bins | ) |
|
protected |
Definition at line 58 of file massspectrumcombiner.h.
Referenced by MassSpectrumCombiner(), ~MassSpectrumCombiner(), begin(), binCount(), pappso::MassSpectrumMinusCombiner::combineNoFilteringStep(), pappso::MassSpectrumPlusCombiner::combineNoFilteringStep(), end(), findBin(), getBins(), and setBins().