go(stats): update FuncStats definition
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-06-18 00:51:51 +02:00
parent a913bbb407
commit 49f5d93200
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -11,10 +11,14 @@
"os"
)
type BenchRound struct {
Iteration int
Results []float64
}
type FuncStats struct {
BenchName string
Results []float64
Iteration int
Solution []BenchRound
}
type Stats struct {
@ -25,11 +29,10 @@ type Stats struct {
Generations int
}
func GetFuncStats(funcName string, results []float64, iteration int) FuncStats {
func GetFuncStats(funcName string, solution []BenchRound) FuncStats {
f := FuncStats{
BenchName: funcName,
Results: results,
Iteration: iteration,
Solution: solution,
}
return f