From 4af5b9ca1cb7f57f031009d987762d6bd389f346 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 9 Feb 2023 22:00:38 +0100 Subject: [PATCH] chore: follow up on 578df3d (weights w/ make) --- bench/cec2020/benchFunctions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/cec2020/benchFunctions.go b/bench/cec2020/benchFunctions.go index 9359ea6..1ae5146 100644 --- a/bench/cec2020/benchFunctions.go +++ b/bench/cec2020/benchFunctions.go @@ -217,7 +217,7 @@ func Composition2(x []float64) float64 { var sum float64 - var weights []float64 + weights := make([]float64, len(funcs)) for i := range funcs { wi := getWeight(x, o, sigma[i], fnx) @@ -259,7 +259,7 @@ func Composition3(x []float64) float64 { var sum float64 - var weights []float64 + weights := make([]float64, len(funcs)) for i := range funcs { wi := getWeight(x, o, sigma[i], fnx)