|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcat.hist.Util
This class is used by the database server, which may be local or remote. This class provides some methods for finding particular information from the database.
Constructor Summary | |
Util()
|
Method Summary | |
static java.lang.String |
findClosest(java.util.Vector values,
java.util.Vector times,
java.lang.String time)
Finds the closest value that is just less than given time. |
static java.lang.String |
formatTime(java.util.Calendar calendar)
Formats a calendar time object into SQL string form. |
static double |
getAverage(double[] ds)
Returns average of all the doubles. |
static double |
getAverage(java.util.Vector v)
Returns average of all the doubles. |
static java.lang.String[] |
parseProperty(java.lang.String s)
parses SQL string into array of strings. |
static double[] |
vector2Doubles(java.util.Vector v)
Turns vector of doubles into array of doubles. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Util()
Method Detail |
public static double getAverage(double[] ds)
public static double getAverage(java.util.Vector v)
public static double[] vector2Doubles(java.util.Vector v)
public static java.lang.String[] parseProperty(java.lang.String s)
public static java.lang.String findClosest(java.util.Vector values, java.util.Vector times, java.lang.String time)
values
- The values to look throughtimes
- The times for the given valuestime
- The time to look for.public static java.lang.String formatTime(java.util.Calendar calendar)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |