Class CompositeSamplers.CompositeSampler<S>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected DiscreteSampler discreteSampler
      Continuous sampler to choose the individual sampler to sample.
      protected java.util.List<S> samplers
      Collection of samplers to be sampled from.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) S nextSampler()
      Gets the next sampler to use to create a sample.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • discreteSampler

        protected final DiscreteSampler discreteSampler
        Continuous sampler to choose the individual sampler to sample.
      • samplers

        protected final java.util.List<S> samplers
        Collection of samplers to be sampled from.
    • Constructor Detail

      • CompositeSampler

        CompositeSampler​(DiscreteSampler discreteSampler,
                         java.util.List<S> samplers)
        Parameters:
        discreteSampler - Continuous sampler to choose the individual sampler to sample.
        samplers - Collection of samplers to be sampled from.
    • Method Detail

      • nextSampler

        S nextSampler()
        Gets the next sampler to use to create a sample.
        Returns:
        the sampler