From 35d433e847e1348ad7e68909dd96dd57396ff231 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 28 Jun 2022 23:04:31 +0200 Subject: [PATCH] go(bench): explain {Schwefel,DeJong{1,2}}Params --- bench/bench.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bench/bench.go b/bench/bench.go index 7f273b2..a16fd41 100644 --- a/bench/bench.go +++ b/bench/bench.go @@ -20,9 +20,15 @@ var ( // Dimensions to compute for (spatial complexity..?). Dimensions = []uint{5, 10, 20} + // SchwefelParams is a struct holding the min, max allowed value of inputs + // passed to the Schwefel function. SchwefelParams = funcParams{min: -500.0, max: 500.0} - DeJong1Params = funcParams{min: -5.0, max: 5.0} - DeJong2Params = funcParams{min: -5.0, max: 5.0} + // DeJong1Params is a struct holding the min, max allowed value of inputs + // passed to the De Jong 1st function. + DeJong1Params = funcParams{min: -5.0, max: 5.0} + // DeJong2Params is a struct holding the min, max allowed value of inputs + // passed to the De Jong 2nd function. + DeJong2Params = funcParams{min: -5.0, max: 5.0} ) // Min returns the non-exported "min" field of a funcParams struct.