Distribution

A random function sampling some probability distribution to produce a Double value.

It can be used to generate a value for simulation parameters (typically duration and cost). It can be a Constant which always provides the same value or any probability distribution.

Distributions must also provide an estimate of the generated values such that can be used in 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.

class Object
trait Matchable
class Any
class Constant
class Uniform

Value members

Abstract methods

def estimate: Double

Provides an estimate of the 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.

Provides an estimate of the 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.

def get: Double

Provides a sample value.

Provides a sample value.

Returns

A sample value.

Concrete 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
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