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