utils

package
v0.0.0-...-a996d8c Latest Latest
Warning

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

Go to latest
Published: May 3, 2016 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PriorityQueue

type PriorityQueue interface {
	PushBack(T)
	PopFront() T
}

type Queue

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

func (*Queue) PopFront

func (q *Queue) PopFront() T

func (*Queue) Print

func (q *Queue) Print()

func (*Queue) PushBack

func (q *Queue) PushBack(v T)

func (*Queue) Size

func (q *Queue) Size() int

type RangeHistogram

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

Histogram statistic:

func (*RangeHistogram) Add

func (s *RangeHistogram) Add(x int, c int)

func (*RangeHistogram) ResumeHistogram

func (s *RangeHistogram) ResumeHistogram(out *color.Color)

func (*RangeHistogram) ResumeHistogramUnsort

func (s *RangeHistogram) ResumeHistogramUnsort(out *color.Color)

func (*RangeHistogram) Set

func (s *RangeHistogram) Set(n string)

type RangeStatistic

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

Range statistic: keep track of min-max values

func (*RangeStatistic) Add

func (s *RangeStatistic) Add(x int)

func (*RangeStatistic) ResumeRange

func (s *RangeStatistic) ResumeRange(out *color.Color)

func (*RangeStatistic) ResumeRangeAv

func (s *RangeStatistic) ResumeRangeAv(out *color.Color)

func (*RangeStatistic) Set

func (s *RangeStatistic) Set(n string)

type ScalarStatistic

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

Scalar statistic: keep track of total(or count) and average

func (*ScalarStatistic) Add

func (s *ScalarStatistic) Add(x int)

func (*ScalarStatistic) Incr

func (s *ScalarStatistic) Incr()

func (*ScalarStatistic) Resume

func (s *ScalarStatistic) Resume(out *color.Color)

func (*ScalarStatistic) ResumeAv

func (s *ScalarStatistic) ResumeAv(out *color.Color)

func (*ScalarStatistic) Set

func (s *ScalarStatistic) Set(n string)

type T

type T interface{}

Jump to

Keyboard shortcuts

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