go(algo): add GetMeanStats func
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
a328c9619e
commit
b4c9ebcf5a
@ -4,6 +4,7 @@
|
||||
package algo
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"git.dotya.ml/wanderer/math-optim/bench"
|
||||
@ -21,6 +22,14 @@ var meanStats = &stats.MeanStats{}
|
||||
|
||||
var comparisonOfMeansPicList = &report.PicList{Algo: "Comparison of Means"}
|
||||
|
||||
// GetMeanStats returns a pointer of type stats.MeanStats to a sorted package
|
||||
// global 'meanStats'.
|
||||
func GetMeanStats() *stats.MeanStats {
|
||||
sort.Sort(meanStats)
|
||||
|
||||
return meanStats
|
||||
}
|
||||
|
||||
// DoRandomSearch executes a search using the 'Random search' method.
|
||||
func DoRandomSearch(wg *sync.WaitGroup, m *sync.Mutex) {
|
||||
defer wg.Done()
|
||||
|
Loading…
Reference in New Issue
Block a user