OpenMS
Loading...
Searching...
No Matches
PASEFHillCentroider.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
13
14#include <cstddef>
15#include <cstdint>
16#include <vector>
17
19{
23 struct OPENMS_DLLAPI Params
24 {
27 double mz_tol_ppm = 8.0;
28
32 double valley_factor = 1.3;
33
44 Size min_hill_length = 1;
45
47 double min_intensity = 0.0;
48
53 double im_group_tolerance = 0.0;
54
68 Size max_scan_gap = 0;
69 };
70
72 struct OPENMS_DLLAPI Centroid
73 {
74 double mz;
75 double intensity;
76 double im_apex;
77 double im_lower;
78 double im_upper;
79 double mz_lower;
80 double mz_upper;
82 };
83
116 OPENMS_DLLAPI std::vector<Centroid>
117 centroidFrame(const double* mz_values,
118 const double* intensities,
119 const double* im_values,
120 std::size_t n,
121 const Params& p,
122 const std::uint32_t* scan_indices = nullptr);
123
124} // namespace OpenMS::Internal::PASEFHillCentroider
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Definition PASEFHillCentroider.h:19
std::vector< Centroid > centroidFrame(const double *mz_values, const double *intensities, const double *im_values, std::size_t n, const Params &p, const std::uint32_t *scan_indices=nullptr)
double intensity
summed intensity across the hill
Definition PASEFHillCentroider.h:75
double im_lower
minimum IM value covered by the hill
Definition PASEFHillCentroider.h:77
double mz
intensity-weighted m/z over the hill
Definition PASEFHillCentroider.h:74
double im_apex
IM value at the hill's intensity apex.
Definition PASEFHillCentroider.h:76
Size length
number of IM scans contributing to the hill
Definition PASEFHillCentroider.h:81
double mz_lower
minimum m/z value covered by the hill
Definition PASEFHillCentroider.h:79
double mz_upper
maximum m/z value covered by the hill
Definition PASEFHillCentroider.h:80
double im_upper
maximum IM value covered by the hill
Definition PASEFHillCentroider.h:78
One centroided peak produced by hill detection.
Definition PASEFHillCentroider.h:73
Definition PASEFHillCentroider.h:24