DataPeak.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5
13class CDM_DECL DataPeak
14{
15public:
16
32 DataPeak(unsigned int samples, double epsilon);
33
35 void Reset();
36
40 double LastTopPeak();
41
45 double LastBottomPeak();
46
50 bool Peaked(double value);
51
52protected:
53
57 unsigned int m_Samples;
58 unsigned int m_PeakCount;
59 double m_Epsilon;
63};
Definition: DataPeak.h:14
double m_Epsilon
Definition: DataPeak.h:59
bool m_FindMax
Definition: DataPeak.h:55
double m_LastBottomPeak
Definition: DataPeak.h:62
double m_LastTopPeak
Definition: DataPeak.h:61
bool m_FindMin
Definition: DataPeak.h:56
unsigned int m_PeakCount
Definition: DataPeak.h:58
bool m_PositiveTrend
Definition: DataPeak.h:54
unsigned int m_Samples
Definition: DataPeak.h:57
double m_SamplePeak
Definition: DataPeak.h:60

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.