testing

package
v0.18.2-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoRestraintFactory

func NewNoRestraintFactory() fq.QueueSetFactory

NewNoRestraintFactory makes a QueueSetFactory that produces QueueSets that exert no restraint --- every request is dispatched for execution as soon as it arrives.

Types

type Integrator

type Integrator interface {
	Set(float64) // set the value of X
	Add(float64) // add the given quantity to X
	GetResults() IntegratorResults
}

Integrator computes the integral of some variable X over time as read from a particular clock. The integral starts when the Integrator is created, and ends at the latest operation on the Integrator.

func NewIntegrator

func NewIntegrator(clk clock.PassiveClock) Integrator

NewIntegrator makes one that uses the given clock

type IntegratorResults

type IntegratorResults struct {
	Duration  float64 //seconds
	Average   float64
	Deviation float64 //sqrt(avg((value-avg)^2))
}

IntegratorResults holds statistical abstracts of the integration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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