simulator

package
v0.0.0-...-4cd1fa5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimulationConfig

type SimulationConfig struct {
	K     int
	S     int
	NumLN int
}

type Simulator

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

Simulator runs simulations

func New

func New(numIterations int, enhancedModel bool) *Simulator

New generates a new simulator

func (*Simulator) Run

func (sm *Simulator) Run(k int, s int, c int) (float64, float64)

Run runs a specific configuration

func (*Simulator) RunConfigs

func (sm *Simulator) RunConfigs(configs []SimulationConfig)

RunConfigs will run the simulator for the specified configuration

func (*Simulator) Solve

func (sm *Simulator) Solve(k int, s int, p float64, threshold float64) (int, float64)

Solve for (k, s, p, threshold)

Jump to

Keyboard shortcuts

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