diff --git a/p3/lrls/arx.go b/p3/lrls/arx.go index 4db8400..b02acee 100644 --- a/p3/lrls/arx.go +++ b/p3/lrls/arx.go @@ -13,9 +13,9 @@ const ( // Estimate runs the selected method to estimate parameters of ARX model, // returns them and the error of the estimate. valid estimation method values // are 0 for explicit and 1 for recursive. -// the function returns [][]float64 of parameter estimates, ([][]float64 of -// error values, nil for error) on happy path, (nil, nil, err) otherwise. -func Estimate(eMethod int, u, y [][]float64) ([][]float64, [][]float64, error) { +// the function returns [][]float64 of parameter estimates, ([]float64 of error +// values, nil for error) on happy path, (nil, nil, err) otherwise. +func Estimate(eMethod int, u, y []float64) ([][]float64, []float64, error) { if eMethod < 0 || eMethod > 1 { log.Printf("error: estimation method needs to be from the set {0, 1}, got: %d", eMethod) @@ -24,7 +24,7 @@ func Estimate(eMethod int, u, y [][]float64) ([][]float64, [][]float64, error) { method := eMethod estimates := make([][]float64, 0) - errs := make([][]float64, 0) + errs := make([]float64, 0) var err error diff --git a/p3/lrls/explicit.go b/p3/lrls/explicit.go index 2fe17e0..1dac4c5 100644 --- a/p3/lrls/explicit.go +++ b/p3/lrls/explicit.go @@ -1,5 +1,5 @@ package lrls -func explicit(u, y [][]float64) ([][]float64, [][]float64, error) { +func explicit(u, y []float64) ([][]float64, []float64, error) { return nil, nil, nil } diff --git a/p3/lrls/recursive.go b/p3/lrls/recursive.go index 51b8440..314ea48 100644 --- a/p3/lrls/recursive.go +++ b/p3/lrls/recursive.go @@ -1,5 +1,5 @@ package lrls -func recursive(u, y [][]float64) ([][]float64, [][]float64, error) { +func recursive(u, y []float64) ([][]float64, []float64, error) { return nil, nil, nil }