src/uan/model/uan-noise-model-default.cc
changeset 9063 32755d0516f4
parent 7737 0f35472c9d4d
child 10410 4d4eb8097fa3
--- a/src/uan/model/uan-noise-model-default.cc	Fri Aug 31 12:24:28 2012 +0200
+++ b/src/uan/model/uan-noise-model-default.cc	Sat Sep 01 20:57:21 2012 +0200
@@ -62,19 +62,19 @@
   double turb, wind, ship, thermal;
   double turbDb, windDb, shipDb, thermalDb, noiseDb;
 
-  turbDb = 17.0 - 30.0 * log10 (fKhz);
-  turb = pow (10.0, turbDb * 0.1);
+  turbDb = 17.0 - 30.0 * std::log10 (fKhz);
+  turb = std::pow (10.0, turbDb * 0.1);
 
-  shipDb = 40.0 + 20.0 * (m_shipping - 0.5) + 26.0 * log10 (fKhz) - 60.0 * log10 (fKhz + 0.03);
-  ship = pow (10.0, (shipDb * 0.1));
+  shipDb = 40.0 + 20.0 * (m_shipping - 0.5) + 26.0 * std::log10 (fKhz) - 60.0 * std::log10 (fKhz + 0.03);
+  ship = std::pow (10.0, (shipDb * 0.1));
 
-  windDb = 50.0 + 7.5 * pow (m_wind, 0.5) + 20.0 * log10 (fKhz) - 40.0 * log10 (fKhz + 0.4);
-  wind = pow (10.0, windDb * 0.1);
+  windDb = 50.0 + 7.5 * std::pow (m_wind, 0.5) + 20.0 * std::log10 (fKhz) - 40.0 * std::log10 (fKhz + 0.4);
+  wind = std::pow (10.0, windDb * 0.1);
 
-  thermalDb = -15 + 20 * log10 (fKhz);
-  thermal = pow (10, thermalDb * 0.1);
+  thermalDb = -15 + 20 * std::log10 (fKhz);
+  thermal = std::pow (10, thermalDb * 0.1);
 
-  noiseDb = 10 * log10 (turb + ship + wind + thermal);
+  noiseDb = 10 * std::log10 (turb + ship + wind + thermal);
 
   return noiseDb;
 }