stats

package
v0.0.0-...-c4f60fb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowStatistics

func ShowStatistics(data map[string]TimeValues) error

Types

type Percentile

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

func (*Percentile) Show

func (p *Percentile) Show()

type Percentiles

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

func GetPercentiles

func GetPercentiles(
	values []float64, percents []float64, unit string,
) (*Percentiles, error)

func (*Percentiles) Append

func (p *Percentiles) Append(value Percentile)

func (*Percentiles) Show

func (p *Percentiles) Show()

type Stats

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

func GetBasicStatistics

func GetBasicStatistics(values []float64, unit string) (*Stats, error)

func (*Stats) Show

func (s *Stats) Show()

type TimeValues

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

func NewTimeValues

func NewTimeValues(unit string) *TimeValues

func (*TimeValues) Append

func (e *TimeValues) Append(value float64)

func (*TimeValues) AppendTimeValue

func (e *TimeValues) AppendTimeValue(tv TimeValues)

func (*TimeValues) Len

func (e *TimeValues) Len() int

Jump to

Keyboard shortcuts

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