Package io.virtdata.stathelpers
Class EvProbD
- java.lang.Object
-
- io.virtdata.stathelpers.EvProbD
-
- All Implemented Interfaces:
java.lang.Comparable<EvProbD>
public class EvProbD extends java.lang.Object implements java.lang.Comparable<EvProbD>
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<EvProbD>DESCENDING_PROBABILTY
-
Constructor Summary
Constructors Constructor Description EvProbD(int eventId, double probability)
-
Method Summary
Modifier and Type Method Description intcompareTo(EvProbD other)intgetEventId()doublegetProbability()voidsetProbability(double probability)java.lang.StringtoString()
-
-
-
Field Detail
-
DESCENDING_PROBABILTY
public static java.util.Comparator<EvProbD> DESCENDING_PROBABILTY
-
-
Method Detail
-
getProbability
public double getProbability()
-
getEventId
public int getEventId()
-
compareTo
public int compareTo(EvProbD other)
- Specified by:
compareToin interfacejava.lang.Comparable<EvProbD>
-
setProbability
public void setProbability(double probability)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-