cec2020: use make() for weights
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-02-09 03:14:06 +01:00
parent 4a18306977
commit 578df3d361
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -176,7 +176,7 @@ func Composition1(x []float64) float64 {
var sum float64 var sum float64
var weights []float64 weights := make([]float64, len(funcs))
for i := range funcs { for i := range funcs {
wi := getWeight(x, o, sigma[i], fnx) wi := getWeight(x, o, sigma[i], fnx)