Class Decibel.MagnitudesToDecibel
- java.lang.Object
-
- com.tagtraum.audiokern.psychoacoustics.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 toObject.clone()the array should you want to use it after mapmap(float[])was called again. It also means that instances should only be used from one thread.
-
-
Constructor Summary
Constructors Constructor Description MagnitudesToDecibel()
-
-
-
Method Detail
-
map
public float[] map(float[] magnitudes)
- Specified by:
mapin interfaceMapFunction<float[]>
-
-