DESERT 3.5.1
Loading...
Searching...
No Matches
ship_noise Namespace Reference

Enumerations

enum class  ShipCategory {
  CARGO , CARGO_L , CRUISE , FERRY ,
  FISHING , AUV
}
 

Functions

double getNoisefromCategory (const ShipCategory &cat, double freq, double speed, double length)
 
double cargo_ship (double freq, double speed, double length)
 
double cargoL_ship (double freq, double speed, double length)
 
double cruise_ship (double freq, double speed, double length)
 
double ferry (double freq, double speed, double length)
 
double fishing_vessel (double freq, double speed, double length)
 
double auv (double freq)
 

Variables

static const std::unordered_map< std::string, ShipCategorycat_dict
 

Enumeration Type Documentation

◆ ShipCategory

enum class ship_noise::ShipCategory
strong

Enum type representing the ship categories.

CARGO: Cargo ship CARGO_L: Long cargo ship CRUISE: Cruise ship FERRY: Ferry boat FISHING: Fishing vessel AUV: Autonomous Underwater Vehicle

Enumerator
CARGO 
CARGO_L 
CRUISE 
FERRY 
FISHING 
AUV 

Definition at line 57 of file soundlevels.h.

Function Documentation

◆ auv()

double ship_noise::auv ( double  freq)

Compute the sound level of an Autonomous Underwater Vehicle (AUV)

Parameters
doubleNoise frequency of a fishing vessel
Returns
double Sound level of a fishing vessel

Definition at line 226 of file soundlevels.cpp.

◆ cargo_ship()

double ship_noise::cargo_ship ( double  freq,
double  speed,
double  length 
)

Compute the sound level of a cargo ship.

Parameters
doubleNoise frequency of a cargo ship
doubleSpeed of a cargo ship
doubleLength of a cargo ship
Returns
double Sound level of a cargo ship

Definition at line 81 of file soundlevels.cpp.

◆ cargoL_ship()

double ship_noise::cargoL_ship ( double  freq,
double  speed,
double  length 
)

Compute the sound level of a long cargo ship.

Parameters
doubleNoise frequency of a long cargo ship
doubleSpeed of a long cargo ship
doubleLength of a long cargo ship
Returns
double Sound level of a long cargo ship

Definition at line 110 of file soundlevels.cpp.

◆ cruise_ship()

double ship_noise::cruise_ship ( double  freq,
double  speed,
double  length 
)

Compute the sound level of a cruise ship.

Parameters
doubleNoise frequency of a cruise ship
doubleSpeed of a cruise ship
doubleLength of a cruise ship
Returns
double Sound level of a cruise ship

Definition at line 139 of file soundlevels.cpp.

◆ ferry()

double ship_noise::ferry ( double  freq,
double  speed,
double  length 
)

Compute the sound level of a ferry.

Parameters
doubleNoise frequency of a ferry
doubleSpeed of a ferry
doubleLength of a ferry
Returns
double Sound level of a ferry

Definition at line 168 of file soundlevels.cpp.

◆ fishing_vessel()

double ship_noise::fishing_vessel ( double  freq,
double  speed,
double  length 
)

Compute the sound level of a fishing vessel.

Parameters
doubleNoise frequency of a fishing vessel
doubleSpeed of a fishing vessel
doubleLength of a fishing vessel
Returns
double Sound level of a fishing vessel

Definition at line 197 of file soundlevels.cpp.

◆ getNoisefromCategory()

double ship_noise::getNoisefromCategory ( const ShipCategory cat,
double  freq,
double  speed,
double  length 
)

Compute the sound level of a ship given the type.

Parameters
ShipCategoryType of ship
doubleNoise frequency of the ship
doubleSpeed of the ship
doubleLength of the ship
Returns
double Sound level of the ship

Definition at line 47 of file soundlevels.cpp.

Variable Documentation

◆ cat_dict

const std::unordered_map<std::string, ShipCategory> ship_noise::cat_dict
static
Initial value:
= {
{"cargo", ShipCategory::CARGO},
{"cargo_l", ShipCategory::CARGO_L},
{"cruise", ShipCategory::CRUISE},
{"ferry", ShipCategory::FERRY},
{"fishing_vessel", ShipCategory::FISHING},
{"auv", ShipCategory::AUV}}

Dictionary of ship categories.

Definition at line 60 of file soundlevels.h.