ionFinder/src/ms2Spectrum.cpp
void ms2::Spectrum::removeSNRBelow(double snrThreshold, double snrConf)
{
    calcSNR(snrConf);
    for(auto it = _dataPoints.begin(); it != _dataPoints.end();)
    {
        if(it->getSNR() < snrThreshold)
            _dataPoints.erase(it);
        else ++it;
    }
    updateRanges();
}
//! Remove ions with a signal to nose ratio below \p snrThreshold
Remove ions with a signal to nose ratio below \p snrThreshold
Remove ions with a signal to nose ratio below \ p snrThreshold
void ms2::Spectrum::removeSNRBelow(double snrThreshold, double snrConf)
{
    calcSNR(snrConf);
    for(auto it = _dataPoints.begin(); it != _dataPoints.end();)
    {
        if(it->getSNR() < snrThreshold)
            _dataPoints.erase(it);
        else ++it;
    }
    updateRanges();
}
void ms2 :: Spectrum :: removeSNRBelow ( double snrThreshold , double snrConf ) { calcSNR ( snrConf ) ; for ( auto it = _dataPoints . begin ( ) ; it != _dataPoints . end ( ) ; ) { if ( it -> getSNR ( ) < snrThreshold ) _dataPoints . erase ( it ) ; else ++ it ; } updateRanges ( ) ; }
Remove ions with a signal to nose ratio below \p snrThreshold
Remove ions with a signal to nose ratio below \ p snrThreshold