From f42fb27fe3433d7188b5a45f46814e8ead8f8bcf Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 27 Dec 2022 01:24:38 +0100 Subject: [PATCH] chore(go): fmt singleRandomSearch comment --- algo/randomSearch.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/algo/randomSearch.go b/algo/randomSearch.go index d112e62..a4d5891 100644 --- a/algo/randomSearch.go +++ b/algo/randomSearch.go @@ -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)