[go: up one dir, main page]

Menu

[1b439f]: / rmol / Demand.cpp  Maximize  Restore  History

Download this file

63 lines (49 with data), 2.0 kB

 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
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
#include "Demand.hpp"
namespace RMOL {
// //////////////////////////////////////////////////////////////////////
Demand::Demand () :
_distributionParameters (FldDistributionParameters()),
_yieldRange (FldYieldRange()) {
}
// //////////////////////////////////////////////////////////////////////
Demand::Demand (const Demand& iDemand) :
_distributionParameters (iDemand.getDistributionParameters()),
_yieldRange (iDemand.getYieldRange()) {
}
// //////////////////////////////////////////////////////////////////////
Demand::Demand (const FldDistributionParameters& iDistributionParameters,
const FldYieldRange& iYieldRange) :
_distributionParameters (iDistributionParameters),
_yieldRange (iYieldRange) {
}
// //////////////////////////////////////////////////////////////////////
Demand::~Demand() {
}
// //////////////////////////////////////////////////////////////////////
double Demand::getUpperYield() const {
return _yieldRange.getUpperYield();
}
// //////////////////////////////////////////////////////////////////////
double Demand::getAverageYield() const {
return _yieldRange.getAverageYield();
}
// //////////////////////////////////////////////////////////////////////
double Demand::getLowerYield() {
return _yieldRange.getLowerYield();
}
// //////////////////////////////////////////////////////////////////////
double Demand::getMean() const {
return _distributionParameters.getMean();
}
// //////////////////////////////////////////////////////////////////////
double Demand::getStandardDeviation() const {
return _distributionParameters.getStandardDeviation();
}
// //////////////////////////////////////////////////////////////////////
double Demand::getVariance() const {
return _distributionParameters.getVariance();
}
}