本文整理汇总了C++中END_SECTION::getWeight方法的典型用法代码示例。如果您正苦于以下问题:C++ END_SECTION::getWeight方法的具体用法?C++ END_SECTION::getWeight怎么用?C++ END_SECTION::getWeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类END_SECTION
的用法示例。
在下文中一共展示了END_SECTION::getWeight方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dbPreprocessing
const std::vector<double>& pep_masses= ptr->getMasses("P01008");
TEST_EQUAL(pep_masses.size(), 14)
TEST_REAL_SIMILAR(pep_masses[0],1356.68332791328)
const std::vector<double>& pep_masses2= ptr->getMasses("P02787");
TEST_EQUAL(pep_masses2.size(), 19)
TEST_REAL_SIMILAR(pep_masses2[0],306.159984588623)
END_SECTION
START_SECTION(void dbPreprocessing(String db_path, bool save=true))
std::map<String,std::vector<double> > prot_map = ptr->getProtMasses();
TEST_EQUAL(prot_map.size(), 3)
END_SECTION
START_SECTION(double getWeight(double mass))
double w = ptr->getWeight(147.113);
TEST_REAL_SIMILAR(w,1)
END_SECTION
START_SECTION(void loadPreprocessing())
PrecursorIonSelectionPreprocessing ldb;
ldb.setParameters(param);
ldb.loadPreprocessing();
TEST_EQUAL(ldb.getProtMasses().size(),3)
double w = ldb.getWeight(147.113);
TEST_REAL_SIMILAR(w,1)
std::vector<double> pep_masses_l = ldb.getMasses("P01008");
std::vector<double> pep_masses = ptr->getMasses("P01008");
TEST_EQUAL(pep_masses_l.size(),pep_masses.size())
TEST_REAL_SIMILAR(pep_masses_l[0],pep_masses[0])
示例2: dbPreprocessing
const std::vector<DoubleReal>& pep_masses= ptr->getMasses("P01008");
TEST_EQUAL(pep_masses.size(), 14)
TEST_REAL_SIMILAR(pep_masses[0],1356.68332791328)
const std::vector<DoubleReal>& pep_masses2= ptr->getMasses("P02787");
TEST_EQUAL(pep_masses2.size(), 19)
TEST_REAL_SIMILAR(pep_masses2[0],306.159984588623)
END_SECTION
START_SECTION(void dbPreprocessing(String db_path, bool save=true))
std::map<String,std::vector<DoubleReal> > prot_map = ptr->getProtMasses();
TEST_EQUAL(prot_map.size(), 3)
END_SECTION
START_SECTION(DoubleReal getWeight(DoubleReal mass))
DoubleReal w = ptr->getWeight(147.113);
TEST_REAL_SIMILAR(w,1)
END_SECTION
START_SECTION(void loadPreprocessing())
PrecursorIonSelectionPreprocessing ldb;
ldb.setParameters(param);
ldb.loadPreprocessing();
TEST_EQUAL(ldb.getProtMasses().size(),3)
DoubleReal w = ldb.getWeight(147.113);
TEST_REAL_SIMILAR(w,1)
std::vector<DoubleReal> pep_masses_l = ldb.getMasses("P01008");
std::vector<DoubleReal> pep_masses = ptr->getMasses("P01008");
TEST_EQUAL(pep_masses_l.size(),pep_masses.size())
TEST_REAL_SIMILAR(pep_masses_l[0],pep_masses[0])