Class OmnidirectionalDirection

java.lang.Object
org.noise_planet.noisemodelling.emission.directivity.OmnidirectionalDirection
All Implemented Interfaces:
DirectivitySphere

public class OmnidirectionalDirection extends Object implements DirectivitySphere
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    coverFrequency(double frequency)
    Check if this sphere is capable of producing an attenuation for this frequency
    double
    getAttenuation(double frequency, double phi, double theta)
    Returns the attenuation in dB of the directivity pattern at a given angle (phi, theta).
    double[]
    getAttenuationArray(double[] frequencies, double phi, double theta)
    Returns the attenuation in dB of the directivity pattern at a given angle (phi, theta).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OmnidirectionalDirection

      public OmnidirectionalDirection()
  • Method Details

    • getAttenuation

      public double getAttenuation(double frequency, double phi, double theta)
      Returns the attenuation in dB of the directivity pattern at a given angle (phi, theta).
      Specified by:
      getAttenuation in interface DirectivitySphere
      Parameters:
      frequency - Frequency in Hertz
      phi - (0 2π) with 0 is front
      theta - (-π/2 π/2) with 0 is horizontal; π is top
      Returns:
      attenuation in dB
    • getAttenuationArray

      public double[] getAttenuationArray(double[] frequencies, double phi, double theta)
      Returns the attenuation in dB of the directivity pattern at a given angle (phi, theta).
      Specified by:
      getAttenuationArray in interface DirectivitySphere
      Parameters:
      frequencies - Frequency array in Hertz (same order will be returned)
      phi - (0 2π) 0 is front
      theta - (-π/2 π/2) 0 is horizontal π is top
      Returns:
      Attenuation in dB for each frequency
    • coverFrequency

      public boolean coverFrequency(double frequency)
      Check if this sphere is capable of producing an attenuation for this frequency
      Specified by:
      coverFrequency in interface DirectivitySphere
      Parameters:
      frequency - Frequency in Hertz
      Returns:
      True