--- 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;
}