b320fb00306e1d9b79cc9c81d7e8aab7f200e8c0
Stefan Schuermans continue implementing confi...

Stefan Schuermans authored 7 years ago

1) /*
2)  * EtherPix simulator
3)  *
4)  * Copyright 2017 Stefan Schuermans <stefan schuermans info>
5)  *
6)  * This program is free software: you can redistribute it and/or modify
7)  * it under the terms of the GNU General Public License as published by
8)  * the Free Software Foundation, version 3 of the License.
9)  *
10)  *
11)  * This program is distributed in the hope that it will be useful,
12)  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13)  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14)  * GNU General Public License for more details.
15)  *
16)  * You should have received a copy of the GNU Lesser General Public License
17)  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18)  */
19) 
Stefan Schuermans implement mapping table

Stefan Schuermans authored 7 years ago

20) #include <math.h>
21) #include <stdint.h>
22) 
Stefan Schuermans continue implementing confi...

Stefan Schuermans authored 7 years ago

23) #include "mapping.h"
24) 
25) /// default constructor
26) Mapping::Mapping():
27)   m_base(1.0),
28)   m_factor(0.0),
29)   m_gamma(1.0)
30) {
Stefan Schuermans implement mapping table

Stefan Schuermans authored 7 years ago

31)   update();
Stefan Schuermans continue implementing confi...

Stefan Schuermans authored 7 years ago

32) }
33) 
34) /// constructor based on parameters
35) Mapping::Mapping(double base, double factor, double gamma):
36)   m_base(base),
37)   m_factor(factor),
38)   m_gamma(gamma)
39) {
Stefan Schuermans implement mapping table

Stefan Schuermans authored 7 years ago

40)   update();
Stefan Schuermans continue implementing confi...

Stefan Schuermans authored 7 years ago

41) }
42)