Package propagation

Class Absorption

java.lang.Object
propagation.Absorption

public class Absorption extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    calcAborption(double[] f, double T, double d)
    Absorption coefficient in seawater in dB/m
    After Kinsler and Frey pp.
    double
    calcAborption(double f, double T, double d)
    Absorption coefficient in seawater in dB/m
    After Kinsler and Frey pp.
    double[]
    fftAbsorption(double[] wave, double sampleRate, double depth, double range)
     
    double
     
    void
    setTempC(double tempC)
     

    Methods inherited from class java.lang.Object

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

    • Absorption

      public Absorption()
  • Method Details

    • fftAbsorption

      public double[] fftAbsorption(double[] wave, double sampleRate, double depth, double range)
    • calcAborption

      public double calcAborption(double f, double T, double d)
      Absorption coefficient in seawater in dB/m
      After Kinsler and Frey pp. 159-160
      Copied from Mark Johnson Matlab code
      Parameters:
      f - is frequency in Hz
      T - is temperature, degrees C
      d - is depth, m
      Returns:
      absorption in dB/m
    • calcAborption

      public double[] calcAborption(double[] f, double T, double d)
      Absorption coefficient in seawater in dB/m
      After Kinsler and Frey pp. 159-160
      Copied from Mark Johnson Matlab code
      Parameters:
      f - is array of frequency values in Hz
      T - is temperature, degrees C
      d - is depth, m
      Returns:
      absorption in dB/m for each frequency
    • getTempC

      public double getTempC()
      Returns:
      the temperature in degrees C
    • setTempC

      public void setTempC(double tempC)
      Parameters:
      tempC - the temperature in degrees C