chore(go): fmt singleRandomSearch comment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2022-12-27 01:24:38 +01:00
parent 67eca7253b
commit f42fb27fe3
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -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.
// * 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)