Class DiscreteFavourableProbability
java.lang.Object
org.noise_planet.noisemodelling.propagation.DiscreteFavourableProbability
- All Implemented Interfaces:
FavourableProbability
Discrete favourable probability implementation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDiscreteFavourableProbability(double[] windRose) DiscreteFavourableProbability(Collection<Double> windRose) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetFavourableProbability(double angle) Returns the favourable probability for a given angle.intgetRoseIndex(double angle) The north slice is the last array index not the first one Ex for slice width of 20°: - The first column 20° contain winds between 10 to 30 ° - The last column 360° contains winds between 350° to 360° and 0 to 10° get the rose index to search the mean occurrence p of favourable conditions in the direction of the angle:intgetRoseIndex(org.locationtech.jts.geom.Coordinate receiver, org.locationtech.jts.geom.Coordinate source) get the rose index to search the mean occurrence p of favourable conditions in the direction of the path (S,R):
-
Field Details
-
DEFAULT_WIND_ROSE
public static final double[] DEFAULT_WIND_ROSE
-
-
Constructor Details
-
DiscreteFavourableProbability
public DiscreteFavourableProbability() -
DiscreteFavourableProbability
public DiscreteFavourableProbability(double[] windRose) -
DiscreteFavourableProbability
-
-
Method Details
-
getRoseIndex
public int getRoseIndex(double angle) The north slice is the last array index not the first one Ex for slice width of 20°: - The first column 20° contain winds between 10 to 30 ° - The last column 360° contains winds between 350° to 360° and 0 to 10° get the rose index to search the mean occurrence p of favourable conditions in the direction of the angle:- Returns:
- rose index
-
getRoseIndex
public int getRoseIndex(org.locationtech.jts.geom.Coordinate receiver, org.locationtech.jts.geom.Coordinate source) get the rose index to search the mean occurrence p of favourable conditions in the direction of the path (S,R):- Parameters:
receiver-source-- Returns:
- rose index
-
getFavourableProbability
public double getFavourableProbability(double angle) Description copied from interface:FavourableProbabilityReturns the favourable probability for a given angle.- Specified by:
getFavourableProbabilityin interfaceFavourableProbability- Parameters:
angle- Propagation angle (radians) from source to receiver where 0: north to south, pi/2: east to west (south clockwise convention)- Returns:
- Favourable propagation condition probability [0-1]
-
getFavourableProbabilitySettings
- Specified by:
getFavourableProbabilitySettingsin interfaceFavourableProbability- Returns:
- For the AtmosphericSettings table, returns the settings for the favourable probability model
-