SUMO - Simulation of Urban MObility
HelpersHarmonoise.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // Helper methods for Harmonoise-based noise emission computation
19 /****************************************************************************/
20 #ifndef HelpersHarmonoise_h
21 #define HelpersHarmonoise_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <vector>
34 #include <limits>
35 #include <cmath>
36 #include <utils/common/StdDefs.h>
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
51 public:
59  static double computeNoise(SUMOEmissionClass c, double v, double a);
60 
61 
67  inline static double sum(double val) {
68  return double(10. * log10(val));
69  }
70 
71 
72 private:
75 
77  static double myR_A_C1_Parameter[27];
78 
80  static double myR_B_C1_Parameter[27];
81 
83  static double myR_A_C3_Parameter[27];
84 
86  static double myR_B_C3_Parameter[27];
87 
89  static double myT_A_C1_Parameter[27];
90 
92  static double myT_B_C1_Parameter[27];
93 
95  static double myT_A_C3_Parameter[27];
96 
98  static double myT_B_C3_Parameter[27];
100 
101 
103  static double myAOctaveBandCorrection[27];
104 
105 
106 };
107 
108 
109 #endif
110 
111 /****************************************************************************/
112 
static double myAOctaveBandCorrection[27]
A-weighted correction for octave bands.
static double myR_B_C3_Parameter[27]
rolling component, heavy vehicles, beta
static double myR_A_C3_Parameter[27]
rolling component, heavy vehicles, alpha
static double computeNoise(SUMOEmissionClass c, double v, double a)
Returns the noise produced by the a vehicle of the given type at the given speed. ...
static double myT_B_C3_Parameter[27]
traction component, heavy vehicles, beta
static double myT_B_C1_Parameter[27]
traction component, light vehicles, beta
int SUMOEmissionClass
static double myT_A_C3_Parameter[27]
traction component, heavy vehicles, alpha
static double myR_B_C1_Parameter[27]
rolling component, light vehicles, beta
Helper methods for Harmonoise-based noise emission computation.
static double myR_A_C1_Parameter[27]
rolling component, light vehicles, alpha
static double myT_A_C1_Parameter[27]
traction component, light vehicles, alpha
static double sum(double val)
Computes the resulting noise.