cec2020: use make() for weights
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4a18306977
commit
578df3d361
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user