win

package
v0.0.0-...-b785d8d Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2015 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

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

func NewWindow

func NewWindow() *Window

func (*Window) Clear

func (self *Window) Clear()

func (*Window) Deq

func (self *Window) Deq() Matrix

func (*Window) Enq

func (self *Window) Enq(m Matrix)

func (*Window) Front

func (self *Window) Front() Matrix

func (*Window) Len

func (self *Window) Len() int

func (*Window) SetMaintainSum

func (self *Window) SetMaintainSum(f bool)

func (*Window) Shift

func (self *Window) Shift(m Matrix) Matrix

func (*Window) Sum

func (self *Window) Sum() Matrix

type WindowEstimator

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

demand monitor is a demand estimator. it monitors the demand from the past and estimates future demand based on a windowed history

func NewWindowEstimator

func NewWindowEstimator(n uint64) *WindowEstimator

func (*WindowEstimator) Estimate

func (self *WindowEstimator) Estimate() (Matrix, uint64)

func (*WindowEstimator) Tell

func (self *WindowEstimator) Tell(demand Matrix)

type WindowTracker

type WindowTracker struct {
	D *density.Density

	Logger *simlog.MatWriter
	// contains filtered or unexported fields
}

func NewWindowTracker

func NewWindowTracker(n uint64) *WindowTracker

func (*WindowTracker) Estimate

func (self *WindowTracker) Estimate() (structs.Matrix, uint64)

func (*WindowTracker) Tell

func (self *WindowTracker) Tell(demand structs.Matrix)

Jump to

Keyboard shortcuts

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