Interface CompositeSamplers.DiscreteProbabilitySamplerFactory

    • Method Detail

      • create

        DiscreteSampler create​(UniformRandomProvider rng,
                               double[] probabilities)
        Creates the sampler.
        Parameters:
        rng - Source of randomness.
        probabilities - Discrete probability distribution.
        Returns:
        the sampler