ProteoWizard
Main Page
Namespaces
Classes
Files
File List
File Members
pwiz
analysis
peakdetect
Noise.hpp
Go to the documentation of this file.
1
//
2
// $Id: Noise.hpp 1191 2009-08-14 19:33:05Z chambm $
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 _NOISECALCULATOR_HPP_
24
#define _NOISECALCULATOR_HPP_
25
26
27
#include "
pwiz/utility/misc/Export.hpp
"
28
#include "
pwiz/utility/math/OrderedPair.hpp
"
29
30
31
namespace
pwiz {
32
namespace
analysis {
33
34
35
struct
PWIZ_API_DECL
Noise
36
{
37
double
mean
;
38
double
variance
;
39
double
standardDeviation
;
40
41
Noise
(
double
m=0,
double
sd=0);
42
double
pvalue(
double
value
)
const
;
// pvalue for a value, given this noise distribution
43
};
44
45
46
class
PWIZ_API_DECL
NoiseCalculator
47
{
48
public
:
49
50
virtual
Noise
calculateNoise(
const
math::OrderedPairContainerRef
& pairs)
const
= 0;
51
virtual
~NoiseCalculator
(){}
52
};
53
54
55
class
PWIZ_API_DECL
NoiseCalculator_2Pass
:
public
NoiseCalculator
56
{
57
public
:
58
59
struct
Config
60
{
61
double
zValueCutoff
;
62
Config
() : zValueCutoff(1) {}
63
};
64
65
NoiseCalculator_2Pass
(
const
Config& config = Config());
66
virtual
Noise
calculateNoise(
const
math::OrderedPairContainerRef
& pairs)
const
;
67
68
private
:
69
Config
config_
;
70
};
71
72
73
}
// namespace analysis
74
}
// namespace pwiz
75
76
77
#endif // _NOISECALCULATOR_HPP_
78
Generated on Mon Nov 26 2012 18:05:47 for ProteoWizard by
1.8.1.1