org.cloudbus.cloudsim.distributions.NormalDistr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsim-plus Show documentation
Show all versions of cloudsim-plus Show documentation
CloudSim Plus: A modern, highly extensible and easier-to-use Java 8 Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services
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);
}
}