Exponential

case
class Exponential(mean: Double) extends Distribution
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def estimate: Double

Provides an estimate of the values that can be generated. Uses the mean of the exponential distribution.

Provides an estimate of the values that can be generated. Uses the mean of the exponential distribution.

Returns

The mean as an estimate of the values that can be generated.

Definition Classes
override
def get: Double

Provides a random value exponentially sampled with a mean value (lambda).

Provides a random value exponentially sampled with a mean value (lambda).

Returns

The random value.

Definition Classes

Inherited methods

override
def getLong: Long

Provides a sample Long value.

Provides a sample Long value.

Simply rounds a Double sample.

Returns

A sample Long value.

Definition Classes
Inherited from
Distribution
override
def longEstimate: Long

Provides an estimate of the Long values that can be generated.

Provides an estimate of the Long values that can be generated.

This could be the mean of the distribution for instance. It can help create an environment of imperfect knowledge. For example, the Scheduler does not know the actual durations of tasks, which can vary from the expected estimate for various reasons.

Returns

An estimate of the values that can be generated.

Definition Classes
Inherited from
Distribution
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product