go(algo): rm unused Values type
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
ea3d57acd8
commit
1ec7a62281
@ -11,10 +11,6 @@ import (
|
||||
"git.dotya.ml/wanderer/math-optim/stats"
|
||||
)
|
||||
|
||||
// Values type is just a fancy named []float64 that will allow us to define
|
||||
// methods over it.
|
||||
type Values []float64
|
||||
|
||||
// mu protects access to meanStats.
|
||||
var mu sync.Mutex
|
||||
|
||||
@ -125,8 +121,3 @@ func DoStochasticHillClimbing(wg *sync.WaitGroup, m *sync.Mutex) {
|
||||
stats.SaveTable(algoName, algoStats)
|
||||
m.Unlock()
|
||||
}
|
||||
|
||||
func newValues() *Values {
|
||||
var v Values
|
||||
return &v
|
||||
}
|
||||
|
@ -54,9 +54,3 @@ func TestDoSHCExec(t *testing.T) {
|
||||
t.Error("picsDir should have already been cleaned up")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewValues(t *testing.T) {
|
||||
if v := newValues(); v == nil {
|
||||
t.Error("failed to get values from newValues()")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user