-
Notifications
You must be signed in to change notification settings - Fork 1
/
Parameters.h
41 lines (32 loc) · 1.14 KB
/
Parameters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef PARAMETERS_H_
#define PARAMETERS_H_
class ParametersInner {
public:
ParametersInner() {}
virtual ParametersInner* clone() const = 0;
virtual double Integral(double time1, double time2) const = 0;
virtual double IntegralSquare(double time1, double time2) const = 0;
virtual ~ParametersInner() {}
};
class Parameters {
ParametersInner* InnerObjectPtr;
public:
Parameters(const ParametersInner& innerObject);
Parameters(const Parameters& original);
Parameters& operator=(const Parameters& original);
virtual ~Parameters();
inline double Integral(double time1, double time2) const;
inline double IntegralSquare(double time1, double time2) const;
double Mean(double time1, double time2) const;
double RootMeanSquare(double time1, double time2) const;
};
class ParametersConstant : public ParametersInner {
double Constant;
double ConstantSquare;
public:
ParametersConstant(double constant);
virtual ParametersInner* clone() const;
virtual double Integral(double time1, double time2) const;
virtual double IntegralSquare(double time1, double time2) const;
};
#endif