analyze

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBenchmarkPlots

func NewBenchmarkPlots(year int) ([][]*plot.Plot, error)

func WithDirectory

func WithDirectory(dir string) func(*Analyzer)

func WithOutput

func WithOutput(name string) func(*Analyzer)

Types

type Analyzer

type Analyzer struct {
	Data   []*exercise.BenchmarkData
	Dir    string
	Output string
	// contains filtered or unexported fields
}

func NewAnalyzer

func NewAnalyzer(cfg config.ExerciseConfiguration, opts ...func(*Analyzer)) (*Analyzer, error)

func (*Analyzer) Graph

func (a *Analyzer) Graph() error

func (*Analyzer) Load

func (a *Analyzer) Load() error

type HumanizedLogTicks

type HumanizedLogTicks struct {
	// Prec specifies the precision of tick rendering
	// according to the documentation for strconv.FormatFloat.
	Prec int
}

HumanizedLogTicks is suitable for the Tick.Marker field of an Axis, it returns tick marks suitable for a log-scale axis which have been humanized.

func (HumanizedLogTicks) Ticks

func (t HumanizedLogTicks) Ticks(minVal, maxVal float64) []plot.Tick

Ticks returns Ticks in a specified range.

type ImplDataMap

type ImplDataMap map[string]map[int]map[int]plotter.Values

ImplDataMap maps language -> day -> part -> values.

Jump to

Keyboard shortcuts

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