GaussianStrategy

model.entities.spawner.GaussianStrategy
case class GaussianStrategy(peak: Double, mean: Double, stdDev: Double, base: Int) extends SpawningStrategy

A spawning strategy that follows a Gaussian (normal) distribution curve.

Creates a bell-curve pattern of customer spawning, with peak activity at the mean time and decreasing activity further from the center. Useful for modeling natural patterns like rush hours or peak casino times.

Value parameters

base

the minimum baseline number of customers to always spawn

mean

the time point where spawning activity is highest

peak

the maximum number of customers to spawn at the distribution peak

stdDev

the standard deviation controlling the width of the distribution

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def customersAt(time: Double): Int

Calculates the number of customers to spawn at the given time.

Calculates the number of customers to spawn at the given time.

Value parameters

time

the current simulation time point

Attributes

Returns

the number of customers to spawn (must be non-negative)

Definition Classes

Inherited methods

protected def hourPerDay: Double

Attributes

Inherited from:
SpawningStrategy
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product