chore(go): fmt singleRandomSearch comment
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
67eca7253b
commit
f42fb27fe3
@ -44,13 +44,13 @@ func genValsRandomSearch(dimens uint, vals []float64, uniform *distuv.Uniform) {
|
||||
}
|
||||
}
|
||||
|
||||
// singleRandomSearch performs a single iteration of the 'RandomSearch' algorithm.
|
||||
// it takes a couple of arguments:
|
||||
// singleRandomSearch performs a single iteration of the 'RandomSearch'
|
||||
// algorithm. it takes a couple of arguments:
|
||||
// * dimens uint: number of dimensions of the objective function
|
||||
// * f func([]float64) float64: bench func to execute (see Functions map in
|
||||
// bench/functions.go)
|
||||
// * uniformDist distuv.Uniform: uniform distribution representation with
|
||||
// the min/max bounds already set to function-specific limits.
|
||||
// bench/functions.go)
|
||||
// * uniformDist distuv.Uniform: uniform distribution representation with the
|
||||
// min/max bounds already set to function-specific limits.
|
||||
func singleRandomSearch(dimens uint, f func([]float64) float64, uniformDist distuv.Uniform) ([]float64, float64) {
|
||||
vals := make([]float64, dimens)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user