-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSuccessGainFunction.hpp
More file actions
executable file
·45 lines (37 loc) · 1.11 KB
/
SuccessGainFunction.hpp
File metadata and controls
executable file
·45 lines (37 loc) · 1.11 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
//
// SuccessGainFunction.hpp
// AggregationNS3
//
// Created by Alper Sinan Akyurek on 8/9/16.
// Copyright © 2016 Alper Sinan Akyurek. All rights reserved.
//
#ifndef SuccessGainFunction_hpp
#define SuccessGainFunction_hpp
#include "GainFunction.hpp"
/**
Implements the expiration minimization gain function.
**/
class SuccessGainFunction : public GainFunction
{
public:
/** Gain value type **/
typedef GainFunction::TGain TGain;
/** Transmission time type **/
typedef GainFunction::TTransmissionTime TTransmissionTime;
public:
/**
Returns the expiration gain value.
\param x Aggreagation time to be calculated for.
\return Gain value.
**/
TGain
GetGain( const TTransmissionTime & x ) const;
/**
Returns the expiration gain derivative value.
\param x Aggreagation time to be calculated for.
\return Gain derivative value.
**/
TGain
GetGainDerivative( const TTransmissionTime & x ) const;
};
#endif /* SuccessGainFunction_hpp */