-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNoGainFunction.hpp
executable file
·44 lines (37 loc) · 1 KB
/
NoGainFunction.hpp
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
//
// NoGainFunction.hpp
// AggregationNS3
//
// Created by Alper Sinan Akyurek on 8/9/16.
// Copyright © 2016 Alper Sinan Akyurek. All rights reserved.
//
#ifndef NoGainFunction_hpp
#define NoGainFunction_hpp
#include "GainFunction.hpp"
/**
Provides unity gain function.
**/
class NoGainFunction : public GainFunction
{
public:
/** Gain value type **/
typedef GainFunction::TGain TGain;
/** Transmission time type **/
typedef GainFunction::TTransmissionTime TTransmissionTime;
public:
/**
Returns unity.
\param x Aggreagation time to be calculated for.
\return Gain value.
**/
TGain
GetGain( const TTransmissionTime & x ) const;
/**
Returns zero.
\param x Aggreagation time to be calculated for.
\return Gain derivative value.
**/
TGain
GetGainDerivative( const TTransmissionTime & x ) const;
};
#endif /* NoGainFunction_hpp */