|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.iss.utils.Utils
public final class Utils
Attribute statistics module utils.
Field Summary | |
---|---|
static Format |
FORMAT
Formatter that formats numbers to a maximum of 5 fraction digits. |
static String |
NA
|
Method Summary | ||
---|---|---|
static
|
append(List<T> list,
T element)
Returns a new list, constructed from the provided list with the provided element appended at the end. |
|
static String |
boolToString(boolean b)
Converts a boolean to String in form yes/no. |
|
static long |
delta(long from)
Returns the number of milliseconds passed since the specified time (again in milliseconds). |
|
static Pair<IdSet,Quality> |
getBest(Experiment experiment,
List<IdSet> solutions)
Returns the best solution from the provided pool in the context of the provided experiment. |
|
static int |
getIterations()
Gets the number of iterations from NB options. |
|
static IdSet |
getWorst(Experiment experiment,
List<IdSet> solutions)
Returns the worst solution from the provided pool in the context of the provided experiment. |
|
static long |
time()
Returns the current time in milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Format FORMAT
public static final String NA
Method Detail |
---|
public static String boolToString(boolean b)
String
in form yes/no.
b
- Boolean to be converted.
public static Pair<IdSet,Quality> getBest(Experiment experiment, List<IdSet> solutions)
experiment
- Experiment, in context of which to find the best solution.solutions
- List of solutions among which to find the best one.
quality
.public static IdSet getWorst(Experiment experiment, List<IdSet> solutions)
experiment
- Experiment, in context of which to find the worst solution.solutions
- List of solutions among which to find the worst one.
public static <T> List<T> append(List<T> list, T element)
T
- Type parameter.list
- List to append to.element
- Element to be appended.
public static long time()
public static long delta(long from)
from
- Time from which to calculate the difference.
public static int getIterations()
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |