Class Decibel.MagnitudesToDecibel

  • All Implemented Interfaces:
    MapFunction<float[]>
    Enclosing class:
    Decibel

    public static class Decibel.MagnitudesToDecibel
    extends Object
    implements MapFunction<float[]>
    Maps magnitudes to decibel (log10(magnitude)*20). Note that this implementation re-uses the array it returns. This means that you need to Object.clone() the array should you want to use it after map map(float[]) was called again. It also means that instances should only be used from one thread.
    • Constructor Detail

      • MagnitudesToDecibel

        public MagnitudesToDecibel()