SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HelpersHarmonoise.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // Helper methods for Harmonoise-based noise emission computation
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef HelpersHarmonoise_h
22 #define HelpersHarmonoise_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
35 #include <cassert>
36 #include "StdDefs.h"
37 #include "SUMOVehicleClass.h"
38 #include <limits>
39 #include <cmath>
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
53 public:
61  static SUMOReal computeNoise(SUMOEmissionClass c, double v, double a) ;
62 
63 
69  inline static SUMOReal sum(SUMOReal val) {
70  return SUMOReal(10. * log10(val));
71  }
72 
73 
74 private:
77 
79  static double myR_A_C1_Parameter[27];
80 
82  static double myR_B_C1_Parameter[27];
83 
85  static double myR_A_C3_Parameter[27];
86 
88  static double myR_B_C3_Parameter[27];
89 
91  static double myT_A_C1_Parameter[27];
92 
94  static double myT_B_C1_Parameter[27];
95 
97  static double myT_A_C3_Parameter[27];
98 
100  static double myT_B_C3_Parameter[27];
102 
103 
105  static double myAOctaveBandCorrection[27];
106 
107 
108 };
109 
110 
111 #endif
112 
113 /****************************************************************************/
114