go: add stats package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-06-17 23:24:41 +02:00
parent cbf47031f9
commit e178ee3237
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 22 additions and 0 deletions

5
stats/doc.go Normal file
View File

@ -0,0 +1,5 @@
// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
// Package stats provides functions for summarizing results.
package stats

17
stats/stats.go Normal file
View File

@ -0,0 +1,17 @@
// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package stats
type FuncStats struct {
BenchName string
Results []float64
}
type Stats struct {
Algo string
Dimens int
BenchFuncStats []FuncStats
Iterations int
Generations int
}