All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jqwik.engine.facades.RandomDistributionFacadeImpl Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.engine.facades;

import net.jqwik.api.*;
import net.jqwik.engine.properties.arbitraries.randomized.*;

public class RandomDistributionFacadeImpl extends RandomDistribution.RandomDistributionFacade {

	private static final BiasedRandomDistribution BIASED_RANDOM_DISTRIBUTION = new BiasedRandomDistribution();
	private static final UniformRandomDistribution UNIFORM_RANDOM_DISTRIBUTION = new UniformRandomDistribution();

	@Override
	public RandomDistribution biased() {
		return BIASED_RANDOM_DISTRIBUTION;
	}

	@Override
	public RandomDistribution uniform() {
		return UNIFORM_RANDOM_DISTRIBUTION;
	}

	@Override
	public RandomDistribution gaussian(double borderSigma) {
		return new GaussianRandomDistribution(borderSigma);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy