From a606d7a1eb61f441f39374f1b30c446d258a423d Mon Sep 17 00:00:00 2001 From: Vladimir Chalupecky Date: Fri, 16 Jun 2017 22:37:08 +0200 Subject: [PATCH] optimize/functions: rename Schubert to Shubert --- optimize/functions/vlse.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/optimize/functions/vlse.go b/optimize/functions/vlse.go index 18d06df1..83fab95f 100644 --- a/optimize/functions/vlse.go +++ b/optimize/functions/vlse.go @@ -302,15 +302,15 @@ func (Schwefel) Func(x []float64) float64 { return 418.9829*float64(len(x)) - sum } -// Schubert implements the Schubert function, a two-dimensional function +// Shubert implements the Shubert function, a two-dimensional function // with many local minima and many global minima. Its typical domain is the // square [-10, 10]^2. // f(x) = (sum_{i=1}^5 i cos((i+1)*x_0+i)) * (\sum_{i=1}^5 i cos((i+1)*x_1+i)) // Reference: // https://www.sfu.ca/~ssurjano/shubert.html (obtained June 2017) -type Schubert struct{} +type Shubert struct{} -func (Schubert) Func(x []float64) float64 { +func (Shubert) Func(x []float64) float64 { if len(x) != 2 { panic(badInputDim) }