Class FastLog


  • public class FastLog
    extends FastFunc
    Provides about 12 digits of accuracy at a fraction of the cost of Math.log().
    Author:
    ellis
    • Field Detail

      • LN_2

        public static final double LN_2
      • LN_2_INV

        public static final double LN_2_INV
      • LOG10_2

        public static final double LOG10_2
    • Constructor Detail

      • FastLog

        public FastLog​(int samples)
    • Method Detail

      • getInstance

        public static FastLog getInstance()
      • log2

        public double log2​(double x)
      • evaluate

        public double evaluate​(double x)
        Overrides:
        evaluate in class FastFunc
      • log10

        public double log10​(double x)