ProteoWizard
pwiz
analysis
peakdetect
PeakExtractor.hpp
Go to the documentation of this file.
1
//
2
// $Id$
3
//
4
//
5
// Original author: Darren Kessner <darren@proteowizard.org>
6
//
7
// Copyright 2009 Center for Applied Molecular Medicine
8
// University of Southern California, Los Angeles, CA
9
//
10
// Licensed under the Apache License, Version 2.0 (the "License");
11
// you may not use this file except in compliance with the License.
12
// You may obtain a copy of the License at
13
//
14
// http://www.apache.org/licenses/LICENSE-2.0
15
//
16
// Unless required by applicable law or agreed to in writing, software
17
// distributed under the License is distributed on an "AS IS" BASIS,
18
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
// See the License for the specific language governing permissions and
20
// limitations under the License.
21
//
22
23
#ifndef _PEAKEXTRACTOR_HPP_
24
#define _PEAKEXTRACTOR_HPP_
25
26
27
#include "
PeakFinder.hpp
"
28
#include "
PeakFitter.hpp
"
29
#include "
pwiz/utility/misc/Export.hpp
"
30
#include "
pwiz/utility/math/OrderedPair.hpp
"
31
#include "
pwiz/data/misc/PeakData.hpp
"
32
#include "boost/shared_ptr.hpp"
33
#include <vector>
34
35
36
namespace
pwiz
{
37
namespace
analysis {
38
39
40
///
41
/// Class for extracting Peak objects from an array of ordered pairs;
42
/// in design pattern lingo, this is a "template method" delegating
43
/// peak finding and peak fitting to "strategies".
44
///
45
class
PWIZ_API_DECL
PeakExtractor
46
{
47
public
:
48
49
typedef
pwiz::data::peakdata::Peak
Peak
;
50
51
PeakExtractor
(boost::shared_ptr<PeakFinder> peakFinder,
52
boost::shared_ptr<PeakFitter> peakFitter);
53
54
void
extractPeaks
(
const
pwiz::math::OrderedPairContainerRef
& pairs,
55
std::vector<Peak>& result)
const
;
56
57
private
:
58
59
boost::shared_ptr<PeakFinder>
peakFinder_
;
60
boost::shared_ptr<PeakFitter>
peakFitter_
;
61
};
62
63
64
}
// namespace analysis
65
}
// namespace pwiz
66
67
68
#endif // _PEAKEXTRACTOR_HPP_
69
pwiz::math::OrderedPairContainerRef
wrapper class for accessing contiguous data as a container of OrderedPairs; note that it does not own...
Definition:
OrderedPair.hpp:84
pwiz::data::peakdata::Peak
Definition:
PeakData.hpp:53
pwiz
Definition:
ChromatogramList_Filter.hpp:36
pwiz::analysis::PeakExtractor::peakFinder_
boost::shared_ptr< PeakFinder > peakFinder_
Definition:
PeakExtractor.hpp:59
PWIZ_API_DECL
#define PWIZ_API_DECL
Definition:
Export.hpp:32
Export.hpp
OrderedPair.hpp
PeakFinder.hpp
pwiz::analysis::PeakExtractor::Peak
pwiz::data::peakdata::Peak Peak
Definition:
PeakExtractor.hpp:49
pwiz::analysis::PeakExtractor
Class for extracting Peak objects from an array of ordered pairs; in design pattern lingo,...
Definition:
PeakExtractor.hpp:46
pwiz::analysis::PeakExtractor::peakFitter_
boost::shared_ptr< PeakFitter > peakFitter_
Definition:
PeakExtractor.hpp:60
PeakData.hpp
pwiz::analysis::PeakExtractor::extractPeaks
void extractPeaks(const pwiz::math::OrderedPairContainerRef &pairs, std::vector< Peak > &result) const
pwiz::analysis::PeakExtractor::PeakExtractor
PeakExtractor(boost::shared_ptr< PeakFinder > peakFinder, boost::shared_ptr< PeakFitter > peakFitter)
PeakFitter.hpp
Generated by
1.8.20