|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rvl.util.Utility
Constructor Summary | |
Utility()
|
Method Summary | |
void |
close()
|
static void |
error(java.lang.String msg)
Display a fatal error in a text window and bring up a dialog to close it. |
static void |
error(java.lang.String msg,
Closeable app)
Display a fatal error message in a text window and bring up a dialog to close it. |
static void |
error(java.lang.Throwable t)
Display a fatal error in a text window and bring up a dialog to close it. |
static void |
error(java.lang.Throwable t,
Closeable app)
Display a fatal exception and its stack trace; then shut down as in error(msg,app) |
static void |
exit(int status)
Replacement for System.exit(status). |
static java.lang.String |
fixedFormat(double x,
int decPlaces)
|
static java.lang.String[] |
fmtNice(double[] x)
Find a string representation for a set of nice numbers (requires at least 2) This will return unreliable results if numbers are not nice, especially if the 1st 2 elements are equal |
static java.lang.String |
format(double x,
int digits)
|
static java.lang.String |
format(double x,
int digits,
boolean trim)
|
static java.lang.String |
format(java.lang.String s,
int nChars)
|
static void |
main(java.lang.String[] argv)
|
static java.lang.String |
minFormat(double x,
double margin)
|
static double |
NaN(java.lang.String msg)
Displays the message and returns Double.NaN. |
static double[] |
nice(double a,
double b,
int minTicks,
boolean enclose)
Return an array of nice numbers that contain the interval (a,b) (if enclose==true) or that fall within [a,b] (if enclose==false) |
static int[] |
order(double[] x)
|
protected static void |
order(int[] ord,
double[] x,
int bot,
int top)
|
static double[] |
parseDoubles(java.lang.String str)
Return an array of double values parsed from a string Any invalid entries are returned as Double.NaN |
static void |
qsort(double[] x)
Quick-sort algorithm Sorts x[] in place |
protected static void |
qsort(double[] x,
int bot,
int top)
This does the real work of qsort(double x[]); it sorts a partition of x[] from x[bot] to x[top], making recursive calls as needed. |
static int[] |
rank(double[] x)
|
static float[] |
rankTies(double[] x)
|
static void |
setGUIWarn(boolean option)
Set whether to display warnings/errors graphically or on console |
static double |
strtod(java.lang.String s)
|
static float |
strtof(java.lang.String s)
|
static int |
strtoi(java.lang.String s)
|
static long |
strtol(java.lang.String s)
|
static void |
warning(java.lang.String msg)
Display a warning error in a text window |
static void |
warning(java.lang.Throwable t)
|
static void |
warning(java.lang.Throwable t,
boolean stackTrace)
Display the message from a Throwable object in a text window the stack trace is also displayed if stackTrace is true |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utility()
Method Detail |
public static double strtod(java.lang.String s)
public static float strtof(java.lang.String s)
public static int strtoi(java.lang.String s)
public static long strtol(java.lang.String s)
public static void exit(int status)
public void close()
close
in interface Closeable
public static double NaN(java.lang.String msg)
public static void warning(java.lang.String msg)
public static void warning(java.lang.Throwable t, boolean stackTrace)
public static void warning(java.lang.Throwable t)
public static void error(java.lang.String msg, Closeable app)
public static void error(java.lang.Throwable t, Closeable app)
public static void error(java.lang.String msg)
public static void error(java.lang.Throwable t)
public static void setGUIWarn(boolean option)
public static double[] parseDoubles(java.lang.String str)
public static double[] nice(double a, double b, int minTicks, boolean enclose)
public static java.lang.String[] fmtNice(double[] x)
public static java.lang.String minFormat(double x, double margin)
public static java.lang.String fixedFormat(double x, int decPlaces)
public static java.lang.String format(double x, int digits)
public static java.lang.String format(double x, int digits, boolean trim)
public static java.lang.String format(java.lang.String s, int nChars)
public static void qsort(double[] x)
protected static void qsort(double[] x, int bot, int top)
public static int[] order(double[] x)
protected static void order(int[] ord, double[] x, int bot, int top)
public static int[] rank(double[] x)
public static float[] rankTies(double[] x)
public static void main(java.lang.String[] argv)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |