public class ScoreFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
PRECISION |
private static double |
THRESHOLD |
private static double |
ULP |
Constructor and Description |
---|
ScoreFormatter() |
Modifier and Type | Method and 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) |
private static final int PRECISION
private static final double ULP
private static final double THRESHOLD
public static boolean isApproximate(double score)
public static java.lang.String format(double score)
public static java.lang.String format(int width, double score)
public static java.lang.String formatExact(int width, double score)
public static java.lang.String formatLatex(double score)
public static java.lang.String formatError(double error)
public static java.lang.String formatError(int width, double error)
public static java.lang.String superscript(java.lang.String str)