本文整理汇总了C++中Peak1D::getMZ方法的典型用法代码示例。如果您正苦于以下问题:C++ Peak1D::getMZ方法的具体用法?C++ Peak1D::getMZ怎么用?C++ Peak1D::getMZ使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Peak1D
的用法示例。
在下文中一共展示了Peak1D::getMZ方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getPosition
p.setPosition(pos);
TEST_REAL_SIMILAR(p.getPosition()[0], 1.0)
END_SECTION
START_SECTION((PositionType& getPosition()))
Peak1D::PositionType pos;
pos[0] = 1.0;
Peak1D p;
p.getPosition() = pos;
TEST_REAL_SIMILAR(p.getPosition()[0], 1.0)
END_SECTION
START_SECTION((void setMZ(CoordinateTypemz)))
Peak1D p;
p.setMZ(5.0);
TEST_REAL_SIMILAR(p.getMZ(), 5.0)
END_SECTION
START_SECTION((void setPos(CoordinateTypepos)))
Peak1D p;
p.setPos(5.0);
TEST_REAL_SIMILAR(p.getPos(), 5.0)
END_SECTION
START_SECTION((Peak1D(const Peak1D& p)))
Peak1D::PositionType pos;
pos[0] = 21.21;
Peak1D p;
p.setIntensity(123.456f);
p.setPosition(pos);
Peak1D::PositionType pos2;
示例2: getConvexhull
Peak1D p1_9;
p1_9.setIntensity(7.38493077109f);
p1_9.setMZ(1000);
mt1.peaks.push_back(std::make_pair(679.5 , &p1_9));
Peak1D p1_10;
p1_10.setIntensity(7.84158938645f);
p1_10.setMZ(1000);
mt1.peaks.push_back(std::make_pair(679.8 , &p1_10));
START_SECTION(([FeatureFinderAlgorithmPickedHelperStructs::MassTrace] ConvexHull2D getConvexhull() const ))
{
ConvexHull2D ch = mt1.getConvexhull();
DPosition<2> point;
point[0] = 679.8;
point[1] = p1_10.getMZ();
TEST_EQUAL(ch.encloses(point),true);
point[1] = p1_10.getMZ() + 1.0;
TEST_EQUAL(ch.encloses(point),false);
point[1] = p1_10.getMZ();
point[0] = 679.9;
TEST_EQUAL(ch.encloses(point),false);
}
END_SECTION
START_SECTION(([FeatureFinderAlgorithmPickedHelperStructs::MassTrace] void updateMaximum()))
{
mt1.updateMaximum();