Class DiscreteFavourableProbability

java.lang.Object
org.noise_planet.noisemodelling.propagation.DiscreteFavourableProbability
All Implemented Interfaces:
FavourableProbability

public class DiscreteFavourableProbability extends Object implements FavourableProbability
Discrete favourable probability implementation
  • Field Details

    • DEFAULT_WIND_ROSE

      public static final double[] DEFAULT_WIND_ROSE
  • Constructor Details

    • DiscreteFavourableProbability

      public DiscreteFavourableProbability()
    • DiscreteFavourableProbability

      public DiscreteFavourableProbability(double[] windRose)
    • DiscreteFavourableProbability

      public DiscreteFavourableProbability(Collection<Double> windRose)
  • 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: FavourableProbability
      Returns the favourable probability for a given angle.
      Specified by:
      getFavourableProbability in interface FavourableProbability
      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

      public String getFavourableProbabilitySettings()
      Specified by:
      getFavourableProbabilitySettings in interface FavourableProbability
      Returns:
      For the AtmosphericSettings table, returns the settings for the favourable probability model