-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathConstantCorrelationFunction.h
70 lines (57 loc) · 1.92 KB
/
ConstantCorrelationFunction.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//#############################################################################
//
// FILENAME: ConstantCorrelationFunction.h
//
// CLASSIFICATION: Unclassified
//
// DESCRIPTION:
//
// Header: The constant correlation function class is derived from
// the SPDCorrelationFunction base class. This class is used to represent
// a correlation function which has a value of 1.0 for deltaTime within
// "delta time epsilon" of 0.0, and a user defined constant value elsewhere.
//
// The class is a wrapper around the equation
//
// rho(deltaTime) = A
//
// LIMITATIONS: None
//
//
// SOFTWARE HISTORY:
// Date Author Comment
// ----------- ------ -------
// 12-Nov-2023 JPK Initial Coding
// 22-Nov-2023 JPK Added checkParameter() static method.
//
// NOTES:
//
//#############################################################################
#ifndef CONSTANT_CORRELATIONFUNCTION_HEADER
#define CONSTANT_CORRELATIONFUNCTION_HEADER
#include "SPDCorrelationFunction.h"
namespace csm
{
class CSM_EXPORT_API ConstantCorrelationFunction : public SPDCorrelationFunction
{
public:
ConstantCorrelationFunction();
ConstantCorrelationFunction(double corrCoeff,
double deltaTimeEpsilon = 0.0);
void setCorrelationCoefficient(double argRho);
virtual ~ConstantCorrelationFunction();
virtual double getCorrelationCoefficient(double deltaTime) const;
//> This method returns the correlation coefficient for the argument
// delta time.
//<
virtual std::vector<SPDCorrelationFunction::Parameter> parameters() const;
static void checkParameter(double corrCoeff);
private:
double theRho;
//> This data member is the correlation coefficient and must be a value
// in the range [-1.0,1.0]
//<
};
using COCFPtr = std::shared_ptr<ConstantCorrelationFunction>;
} // namespace csm
#endif