Documentation ¶
Overview ¶
Package stats provides functions for summarizing results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMeanVals ¶
func GetMeanVals(values []BenchRound, fes int) []float64
Types ¶
type AlgoBenchMean ¶
AlgoBenchMean holds BenchMean structs of different benchmarks but the same algorithm.
func (AlgoBenchMean) Less ¶
func (a AlgoBenchMean) Less(i, j int) bool
Less implements the sort.Interface.
func (AlgoBenchMean) Swap ¶
func (a AlgoBenchMean) Swap(i, j int)
Swap implements the sort.Interface.
type AlgoMeanVals ¶
type AlgoMeanVals struct { Title string // MeanVals of a particular bench func to compare. MeanVals []float64 }
AlgoMeanVals holds computed mean values of an Algo.
type BenchMean ¶
type BenchMean struct { Bench string Dimens int Iterations int Generations int // Neighbours param is used in Hill Climbing type algos, set to -1 if not // applicable. Neighbours int // MeanVals holds the mean value for each step of the iteration. MeanVals []float64 }
BenchMean structure holds mean vals and metadata of a bench-params combination.
type BenchRound ¶
BenchRound holds the iteration couter value and Results of size 'maxFES'.
type FuncStats ¶
type FuncStats struct { BenchName string BenchResults []BenchRound // MeanVals holds the mean value for each step of the iteration. MeanVals []float64 }
func GetFuncStats ¶
func GetFuncStats(funcName string, benchResults []BenchRound) FuncStats
type MeanStats ¶
type MeanStats struct {
AlgoMeans []AlgoBenchMean
}
MeanStats aggregates AlgoMean structs of different algos.
type Stats ¶
type Stats struct { Algo string Dimens int BenchFuncStats []FuncStats Iterations int // this should perhaps be named FES as that is a smarter thing to be // comparing than algo generations, which can vary based on the type of // algo, number of neighbours, etc.. Generations int // NP is the initial population size, disable with 0. Only applicable to // GAs (see algo/de for more details). NP int // F is the mutation factor, disable with 0. Only applicable to GAs. F float64 // CR is the crossover probability, disable with 0. Only applicable to GAs. CR float64 }
Click to show internal directories.
Click to hide internal directories.