research

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Internal package with research functions that are used for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcIntervalQuantities

func CalcIntervalQuantities(
	relativeTimes []time.Duration,
	intervalsQuantity int,
	interval time.Duration,
) ([]qot.QuantityOverTime, time.Duration)

func CalcRelativeDeviations

func CalcRelativeDeviations(
	relativeTimes []time.Duration,
	expected time.Duration,
) map[int]int

func CalcTotalDuration added in v2.0.7

func CalcTotalDuration(durations []time.Duration) time.Duration

func ConvertQuantityOverTimeToBarEcharts

func ConvertQuantityOverTimeToBarEcharts(
	quantities []qot.QuantityOverTime,
) ([]chartsopts.BarData, []int)

func ConvertRelativeDeviationsToBarEcharts

func ConvertRelativeDeviationsToBarEcharts(
	deviations map[int]int,
) ([]chartsopts.BarData, []int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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