Class ElemProbD<T>

java.lang.Object
io.nosqlbench.virtdata.library.basics.core.stathelpers.ElemProbD<T>
All Implemented Interfaces:
Comparable<ElemProbD<T>>

public class ElemProbD<T> extends Object implements 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 Details

  • Constructor Details

    • ElemProbD

      public ElemProbD(T element, double probability)
  • Method Details

    • getProbability

      public double getProbability()
    • getElement

      public T getElement()
    • compareTo

      public int compareTo(ElemProbD other)
      Specified by:
      compareTo in interface Comparable<T>
    • setProbability

      public void setProbability(double probability)
    • toString

      public String toString()
      Overrides:
      toString in class Object