Class RailwayCnossosDirectivitySphere
- java.lang.Object
-
- org.noise_planet.noisemodelling.emission.directivity.cnossos.RailwayCnossosDirectivitySphere
-
- All Implemented Interfaces:
DirectivitySphere
public final class RailwayCnossosDirectivitySphere extends Object implements DirectivitySphere
-
-
Constructor Summary
Constructors Constructor Description RailwayCnossosDirectivitySphere(LineSource lineSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
coverFrequency(double frequency)
Check if this sphere is capable of producing an attenuation for this frequencydouble
getAttenuation(double frequency, double phi, double theta)
Returns the attenuation in dB due to a particular frequency 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).
-
-
-
Constructor Detail
-
RailwayCnossosDirectivitySphere
public RailwayCnossosDirectivitySphere(LineSource lineSource)
-
-
Method Detail
-
getAttenuation
public double getAttenuation(double frequency, double phi, double theta)
Returns the attenuation in dB due to a particular frequency of the directivity pattern at a given angle (phi, theta)- Specified by:
getAttenuation
in interfaceDirectivitySphere
- Parameters:
frequency
- Frequency in Hertzphi
- (0 2π) with 0 is fronttheta
- (-π/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 interfaceDirectivitySphere
- Parameters:
frequencies
- Frequency array in Hertz (same order will be returned)phi
- (0 2π) 0 is fronttheta
- (-π/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 interfaceDirectivitySphere
- Parameters:
frequency
- Frequency in Hertz- Returns:
- True
-
-