Java Number Power powerLevelToDb0(double value)

Here you can find the source of powerLevelToDb0(double value)

Description

power Level To Db

License

Open Source License

Declaration

public static double powerLevelToDb0(double value) 

Method Source Code

//package com.java2s;

public class Main {
    public final static double MIN_GAIN = -100.0;

    public static double powerLevelToDb0(double value) {
        double result = powerLevelToDb(value);
        if (result < MIN_GAIN)
            return MIN_GAIN;
        return result;
    }//from   w w w.  j  av  a 2  s.co  m

    public static double powerLevelToDb(double value) {
        return 10.0 * Math.log10(value);
    }
}

Related

  1. power(int x, int n)
  2. power(long x, long y)
  3. power2(int power)
  4. powerConverter(String _varSymbol)
  5. powerLevelToDb(double value)
  6. powerMean(final double p, final double[] x)
  7. powerMod(long base, long exp, long mod)
  8. powerOf(final int value, final int powerOf)
  9. powerOf10(int number)