Class Decibel.PowersToDecibel
- java.lang.Object
-
- com.tagtraum.audiokern.psychoacoustics.Decibel.PowersToDecibel
-
- All Implemented Interfaces:
MapFunction<float[]>
- Enclosing class:
- Decibel
public static class Decibel.PowersToDecibel 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 PowersToDecibel()
-
-
-
Method Detail
-
map
public float[] map(float[] powers)
- Specified by:
map
in interfaceMapFunction<float[]>
-
-