Class ScoreFormatter


  • public class ScoreFormatter
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int PRECISION  
      private static double THRESHOLD  
      private static double ULP  
    • Constructor Summary

      Constructors 
      Constructor Description
      ScoreFormatter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(double score)  
      static java.lang.String format​(int width, double score)  
      static java.lang.String formatError​(double error)  
      static java.lang.String formatError​(int width, double error)  
      static java.lang.String formatExact​(int width, double score)  
      static java.lang.String formatLatex​(double score)  
      static boolean isApproximate​(double score)  
      static java.lang.String superscript​(java.lang.String str)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PRECISION

        private static final int PRECISION
      • ULP

        private static final double ULP
      • THRESHOLD

        private static final double THRESHOLD
    • Constructor Detail

      • ScoreFormatter

        public ScoreFormatter()
    • Method Detail

      • isApproximate

        public static boolean isApproximate​(double score)
      • format

        public static java.lang.String format​(double score)
      • format

        public static java.lang.String format​(int width,
                                              double score)
      • formatExact

        public static java.lang.String formatExact​(int width,
                                                   double score)
      • formatLatex

        public static java.lang.String formatLatex​(double score)
      • formatError

        public static java.lang.String formatError​(double error)
      • formatError

        public static java.lang.String formatError​(int width,
                                                   double error)
      • superscript

        public static java.lang.String superscript​(java.lang.String str)