本文整理汇总了C++中END_SECTION::getProductName方法的典型用法代码示例。如果您正苦于以下问题:C++ END_SECTION::getProductName方法的具体用法?C++ END_SECTION::getProductName怎么用?C++ END_SECTION::getProductName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类END_SECTION
的用法示例。
在下文中一共展示了END_SECTION::getProductName方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: create
PeakSpectrum spec;
dta_file.load(OPENMS_GET_TEST_DATA_PATH("Transformers_tests.dta"), spec);
double filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 37.0)
Param p;
p.setValue("tolerance", 2.0);
e_ptr->setParameters(p);
filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 132.5)
END_SECTION
START_SECTION((static FilterFunctor* create()))
FilterFunctor* ff = ComplementFilter::create();
ComplementFilter cf;
TEST_EQUAL(ff->getParameters(), cf.getParameters())
TEST_EQUAL(ff->getName(), cf.getName())
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "ComplementFilter")
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例2: p
DTAFile dta_file;
PeakSpectrum spec;
dta_file.load(OPENMS_GET_TEST_DATA_PATH("Transformers_tests.dta"), spec);
double filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 429.0)
Param p(e_ptr->getParameters());
p.setValue("tolerance", 10.0);
e_ptr->setParameters(p);
filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 2482.5)
END_SECTION
START_SECTION((static FilterFunctor* create()))
FilterFunctor* ff = NeutralLossDiffFilter::create();
NeutralLossDiffFilter filter;
TEST_EQUAL(ff->getParameters(), filter.getParameters())
TEST_EQUAL(ff->getName(), filter.getName())
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "NeutralLossDiffFilter");
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例3: apply
START_SECTION((TICFilter& operator=(const TICFilter& source)))
TICFilter copy;
copy = *e_ptr;
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters());
TEST_EQUAL(copy.getName(), e_ptr->getName());
END_SECTION
START_SECTION((template<typename SpectrumType> double apply(SpectrumType& spectrum)))
DTAFile dta_file;
PeakSpectrum spec;
dta_file.load(OPENMS_GET_TEST_DATA_PATH("Transformers_tests.dta"), spec);
double filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 533.5)
END_SECTION
START_SECTION((static FilterFunctor* create()))
NOT_TESTABLE
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "TICFilter")
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例4: p
TOLERANCE_ABSOLUTE(0.01)
double filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 0.104879)
Param p(e_ptr->getParameters());
p.setValue("tolerance", 10.0);
e_ptr->setParameters(p);
filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 0.811684)
END_SECTION
START_SECTION((static FilterFunctor* create()))
FilterFunctor* ff = GoodDiffFilter::create();
GoodDiffFilter good;
TEST_EQUAL(ff->getParameters(), good.getParameters())
TEST_EQUAL(ff->getName(), good.getName())
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "GoodDiffFilter")
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例5: p
map<double, bool> marked;
e_ptr->apply(marked, spec);
TEST_EQUAL(marked.size(), 17)
Param p(e_ptr->getParameters());
p.setValue("tolerance", 10.0);
e_ptr->setParameters(p);
marked.clear();
e_ptr->apply(marked, spec);
TEST_EQUAL(marked.size(), 49)
END_SECTION
START_SECTION((static PeakMarker* create()))
PeakMarker* pm = NeutralLossMarker::create();
NeutralLossMarker marker;
TEST_EQUAL(pm->getParameters(), marker.getParameters())
TEST_EQUAL(pm->getName(), marker.getName())
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "NeutralLossMarker")
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例6: apply
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
START_SECTION((template<typename SpectrumType> double apply(SpectrumType& spectrum)))
DTAFile dta_file;
PeakSpectrum spec;
dta_file.load(OPENMS_GET_TEST_DATA_PATH("Transformers_tests.dta"), spec);
double filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 0.842697)
END_SECTION
START_SECTION((static FilterFunctor* create()))
FilterFunctor* ff = IntensityBalanceFilter::create();
IntensityBalanceFilter filter;
TEST_EQUAL(ff->getParameters(), filter.getParameters())
TEST_EQUAL(ff->getName(), filter.getName())
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "IntensityBalanceFilter")
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例7: p
e_ptr->apply(marked, spec);
TEST_EQUAL(marked.size(), 0)
Param p(e_ptr->getParameters());
p.setValue("marks", 10);
p.setValue("tolerance", 10.0);
e_ptr->setParameters(p);
marked.clear();
e_ptr->apply(marked, spec);
TEST_EQUAL(marked.size(), 0)
END_SECTION
START_SECTION((static PeakMarker* create()))
PeakMarker* pm = ComplementMarker::create();
ComplementMarker cm;
TEST_EQUAL(pm->getParameters(), cm.getParameters())
TEST_EQUAL(pm->getName(), cm.getName())
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "ComplementMarker")
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例8: p
DTAFile dta_file;
PeakSpectrum spec;
dta_file.load(OPENMS_GET_TEST_DATA_PATH("Transformers_tests.dta"), spec);
double filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 0.0)
Param p(e_ptr->getParameters());
p.setValue("tolerance", 10.0);
e_ptr->setParameters(p);
filter = e_ptr->apply(spec);
TEST_REAL_SIMILAR(filter, 2162)
END_SECTION
START_SECTION((static FilterFunctor* create()))
FilterFunctor* ff = IsotopeDiffFilter::create();
IsotopeDiffFilter filter;
TEST_EQUAL(ff->getParameters(), filter.getParameters())
TEST_EQUAL(ff->getName(), filter.getName())
END_SECTION
START_SECTION((static const String getProductName()))
TEST_EQUAL(e_ptr->getProductName(), "IsotopeDiffFilter")
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例9: copy
e_ptr = new PeakMarker();
START_SECTION((PeakMarker(const PeakMarker& source)))
PeakMarker copy(*e_ptr);
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
START_SECTION((template<typename SpectrumType> void apply(std::map<double, bool>&, SpectrumType&)))
// only the derived classes implement this function properly
NOT_TESTABLE
END_SECTION
START_SECTION(static const String getProductName())
TEST_EQUAL(e_ptr->getProductName(), "PeakMarker")
END_SECTION
START_SECTION((PeakMarker& operator = (const PeakMarker& source)))
PeakMarker copy;
copy = *e_ptr;
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
delete e_ptr;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST
示例10: copy
END_SECTION
ptr = new SingleLinkage();
START_SECTION((SingleLinkage(const SingleLinkage &source)))
{
SingleLinkage copy(*ptr);
TEST_EQUAL(copy.getProductName(), ptr->getProductName());
}
END_SECTION
START_SECTION((SingleLinkage& operator=(const SingleLinkage &source)))
{
SingleLinkage copy;
copy = *ptr;
TEST_EQUAL(copy.getProductName(), ptr->getProductName());
}
END_SECTION
START_SECTION((void operator()(DistanceMatrix< float > &original_distance, std::vector<BinaryTreeNode>& cluster_tree, const float threshold=1) const))
{
DistanceMatrix<float> matrix(6,666);
matrix.setValue(1,0,0.5f);
matrix.setValue(2,0,0.8f);
matrix.setValue(2,1,0.3f);
matrix.setValue(3,0,0.6f);
matrix.setValue(3,1,0.8f);
matrix.setValue(3,2,0.8f);
matrix.setValue(4,0,0.8f);
matrix.setValue(4,1,0.8f);
示例11: create
normalizer.filterSpectrum(s1);
normalizer.filterSpectrum(s2);
TOLERANCE_ABSOLUTE(0.01)
double score = (*ptr)(s1, s2);
TEST_REAL_SIMILAR(score, 1.82682)
s2.resize(100);
score = (*ptr)(s1, s2);
normalizer.filterSpectrum(s2);
TEST_REAL_SIMILAR(score, 0.328749)
END_SECTION
START_SECTION(static PeakSpectrumCompareFunctor* create())
PeakSpectrumCompareFunctor* psf = ZhangSimilarityScore::create();
ZhangSimilarityScore zhang;
TEST_EQUAL(psf->getParameters(), zhang.getParameters())
TEST_EQUAL(psf->getName(), zhang.getName())
END_SECTION
START_SECTION(static const String getProductName())
TEST_EQUAL(ptr->getProductName(), "ZhangSimilarityScore")
END_SECTION
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST