Interface ISample

  • All Known Implementing Classes:
    SampleImpl

    public interface ISample
    Describes a sample of a probability mass function. It contains a value and the probability that is associated to that value.
    • Method Detail

      • getProbability

        double getProbability()
        Returns the probability of the value stored in the sample.
        Returns:
        Probability of the value.
      • getValue

        Object getValue()
        Returns the value for which the probability is specified.
        Returns:
        Value object.
      • setProbability

        void setProbability​(double probability)