LongDistribution

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

It can be used to generate a value for simulation parameters (typically duration). It can be a ConstantLong 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

Value members

Abstract methods

def getLong: Long

Provides a sample Long value.

Provides a sample Long value.

Returns

A sample Long value.

def longEstimate: Long

Provides an estimate of the values that can be generated.

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.