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

org.cloudbus.cloudsim.distributions.NormalDistr Maven / Gradle / Ivy

Go to download

CloudSim Plus: A modern, highly extensible and easier-to-use Java 8 Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services

There is a newer version: 8.0.0
Show newest version
package org.cloudbus.cloudsim.distributions;

import org.apache.commons.math3.distribution.NormalDistribution;

/**
 * A pseudo random number generator following the
 * Normal (Gaussian) distribution.
 *
 * @author Manoel Campos da Silva Filho
 */
public class NormalDistr extends ContinuousDistributionAbstract {
	/**
	 * Creates a new normal (Gaussian) pseudo random number generator.
	 *
	 * @param seed the seed to be used.
	 * @param mean the mean for the distribution.
	 * @param standardDeviation the standard deviation for the distribution.
	 */
	public NormalDistr(long seed, double mean, double standardDeviation) {
		super(new NormalDistribution(mean, standardDeviation), seed);
	}

	/**
	 * Creates a new normal (Gaussian) pseudo random number generator.
	 *
	 * @param mean the mean for the distribution.
	 * @param standardDeviation the standard deviation for the distribution.
	 */
	public NormalDistr(double mean, double standardDeviation) {
		this(-1, mean, standardDeviation);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy