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