go(stats): update FuncStats definition
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a913bbb407
commit
49f5d93200
@ -11,10 +11,14 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type BenchRound struct {
|
||||||
|
Iteration int
|
||||||
|
Results []float64
|
||||||
|
}
|
||||||
|
|
||||||
type FuncStats struct {
|
type FuncStats struct {
|
||||||
BenchName string
|
BenchName string
|
||||||
Results []float64
|
Solution []BenchRound
|
||||||
Iteration int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Stats struct {
|
type Stats struct {
|
||||||
@ -25,11 +29,10 @@ type Stats struct {
|
|||||||
Generations int
|
Generations int
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetFuncStats(funcName string, results []float64, iteration int) FuncStats {
|
func GetFuncStats(funcName string, solution []BenchRound) FuncStats {
|
||||||
f := FuncStats{
|
f := FuncStats{
|
||||||
BenchName: funcName,
|
BenchName: funcName,
|
||||||
Results: results,
|
Solution: solution,
|
||||||
Iteration: iteration,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return f
|
return f
|
||||||
|
Loading…
Reference in New Issue
Block a user