[go: up one dir, main page]

Menu

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

Download this file

59 lines (51 with data), 1.9 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
#ifndef __RMOL_DEMAND_HPP
#define __RMOL_DEMAND_HPP
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// RMOL
#include "FldDistributionParameters.hpp"
#include "FldYieldRange.hpp"
namespace RMOL {
/** Class modelling the demand. It holds:
- Demand parameters: mean and standard deviation.
- Yield range: upper yield and average yield. */
class Demand {
public:
/** Constructors. */
Demand ();
Demand (const Demand&);
Demand (const FldDistributionParameters&, const FldYieldRange&);
// Getters
/** Getter for the demand distribution parmaters (i.e., mean and
standard deviation). */
const FldDistributionParameters& getDistributionParameters() const {
return _distributionParameters;
}
/** Getter for the average yield per unit of demand. */
const FldYieldRange& getYieldRange() const {
return _yieldRange;
}
/** Getter for the upper yield of the range. */
double getUpperYield() const;
/** Getter for the average yield of the range. */
double getAverageYield() const;
/** Getter for the lower yield of the range. */
double getLowerYield();
/** Getter for the mean value. */
double getMean() const;
/** Getter for the standard deviation value. */
double getStandardDeviation() const;
/** Getter for the variance value. */
double getVariance() const;
/** Destructors. */
virtual ~Demand();
private:
/** Yield range, i.e., upper and lower yields, as well as average yield
(average revenue per unit of demand). */
FldYieldRange _yieldRange;
/** Distribution parameters (i.e., mean and standard deviation). */
FldDistributionParameters _distributionParameters;
};
}
#endif // __RMOL_DEMAND_HPP