ProteoWizard
ZeroSampleFiller.hpp
Go to the documentation of this file.
1//
2// $Id$
3//
4//
5// Original author: Matt Chambers <matt.chambers <a.t> vanderbilt.edu>
6//
7// Copyright 2008 Vanderbilt University - Nashville, TN 37232
8//
9// Licensed under the Apache License, Version 2.0 (the "License");
10// you may not use this file except in compliance with the License.
11// You may obtain a copy of the License at
12//
13// http://www.apache.org/licenses/LICENSE-2.0
14//
15// Unless required by applicable law or agreed to in writing, software
16// distributed under the License is distributed on an "AS IS" BASIS,
17// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18// See the License for the specific language governing permissions and
19// limitations under the License.
20//
21
22
23#ifndef _ZEROSAMPLEFILLER_HPP_
24#define _ZEROSAMPLEFILLER_HPP_
25
27#include <vector>
28#include <memory>
29#include <cstddef>
30
31
32namespace pwiz {
33namespace analysis {
34
35
36/// fills in missing zero samples around signal profiles
38{
39 /// fills in missing zero samples (and won't overwrite existing samples);
40 /// zeroSampleCount controls how many zero samples to add to each signal profile;
41 /// preconditions:
42 /// - sample rate can change, but it must change gradually
43 /// - at least one zero sample on each side of every signal profile
44 static void fill(const std::vector<double>& x, const std::vector<double>& y,
45 std::vector<double>& xFilled, std::vector<double>& yFilled,
46 std::size_t zeroSampleCount);
47};
48
49
50} // namespace analysis
51} // namespace pwiz
52
53
54#endif // _ZEROSAMPLEFILLER_HPP_
#define PWIZ_API_DECL
Definition Export.hpp:32
KernelTraitsBase< Kernel >::space_type::abscissa_type x
KernelTraitsBase< Kernel >::space_type::ordinate_type y
fills in missing zero samples around signal profiles
static void fill(const std::vector< double > &x, const std::vector< double > &y, std::vector< double > &xFilled, std::vector< double > &yFilled, std::size_t zeroSampleCount)
fills in missing zero samples (and won't overwrite existing samples); zeroSampleCount controls how ma...