Class ElemProbD<T>
java.lang.Object
io.nosqlbench.virtdata.library.basics.core.stathelpers.ElemProbD<T>
- All Implemented Interfaces:
java.lang.Comparable<ElemProbD<T>>
public class ElemProbD<T> extends java.lang.Object implements java.lang.Comparable<ElemProbD<T>>
A simple wrapper type for "Event Probability", where the event is identified by a unique int,
and the probability is represented with double precision floating-point.
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<ElemProbD>DESCENDING_PROBABILTY -
Constructor Summary
-
Method Summary
Modifier and Type Method Description intcompareTo(ElemProbD other)TgetElement()doublegetProbability()voidsetProbability(double probability)java.lang.StringtoString()
-
Field Details
-
Constructor Details
-
Method Details
-
getProbability
public double getProbability() -
getElement
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<T>
-
setProbability
public void setProbability(double probability) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-