Class SampleImpl

    • Constructor Detail

      • SampleImpl

        protected SampleImpl​(Object value,
                             double probability)
        Parameters:
        value -
        probability -
    • Method Detail

      • getProbability

        public double getProbability()
        Description copied from interface: ISample
        Returns the probability of the value stored in the sample.
        Specified by:
        getProbability in interface ISample
        Returns:
        Probability of the value.
      • setProbability

        public void setProbability​(double probability)
        Specified by:
        setProbability in interface ISample
      • getValue

        public Object getValue()
        Description copied from interface: ISample
        Returns the value for which the probability is specified.
        Specified by:
        getValue in interface ISample
        Returns:
        Value object.
      • setValue

        public void setValue​(Object value)