org.cloudbus.cloudsim.distributions.ParetoDistr 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
/*
* Title: CloudSim Toolkit
* Descripimport java.util.Random;
mulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2009-2012, The University of Melbourne, Australia
*/
package org.cloudbus.cloudsim.distributions;
import org.apache.commons.math3.distribution.ParetoDistribution;
/**
* A pseudo random number generator following the
* Pareto
* distribution.
*
* @author Marcos Dias de Assuncao
* @since CloudSim Toolkit 1.0
*/
public class ParetoDistr extends ContinuousDistributionAbstract {
/**
* Instantiates a new Pareto pseudo random number generator.
*
* @param seed the seed
* @param shape the shape
* @param location the location
*/
public ParetoDistr(long seed, double shape, double location) {
super(new ParetoDistribution(location, shape), seed);
}
/**
* Instantiates a new Pareto pseudo random number generator.
*
* @param shape the shape
* @param location the location
*/
public ParetoDistr(double shape, double location) {
this(-1, shape, location);
}
}