queuing_theory_simulator

package module
v0.0.0-...-24c4de7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 3 Imported by: 1

README

Queuing Theory Simulator in Go

Run simple simulator for M/M/S model of queuing theory.

$ go run cmd/simulator/main.go --step 100 --server 2 --lambda 0.2 --mu 0.1
$ python plot.py
$ open out/plot.png

plot

License

MIT

Author

monochromegane

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeExp

type ChangeExp struct {
	// contains filtered or unexported fields
}

func NewChangeExp

func NewChangeExp(seed int64, params func(int) float64) *ChangeExp

func (*ChangeExp) Exp

func (e *ChangeExp) Exp(i int) float64

type Exper

type Exper interface {
	Exp(int) float64
}

type MMSModel

type MMSModel struct {
	// contains filtered or unexported fields
}

func NewMMSModel

func NewMMSModel(seed int64, lambda, mu func(int) float64) *MMSModel

func (*MMSModel) History

func (m *MMSModel) History() [][]int

func (*MMSModel) Progress

func (m *MMSModel) Progress(s int) (int, int, int, []int)

type Model

type Model interface {
	Progress(int) (int, int, int, []int)
	History() [][]int
}

Directories

Path Synopsis
cmd
simulator command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL