p3: estimates -> theta

This commit is contained in:
leo 2023-03-12 00:46:25 +01:00
parent c8a2cfcd17
commit 7bbc50acff
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -23,22 +23,22 @@ func Estimate(eMethod int, u, y []float64) ([][]float64, []float64, error) {
}
method := eMethod
estimates := make([][]float64, 0)
theta := make([][]float64, 0)
errs := make([]float64, 0)
var err error
switch method {
case methodExplicit:
estimates, errs, err = explicit(u, y)
theta, errs, err = explicit(u, y)
case methodRecursive:
estimates, errs, err = recursive(u, y)
theta, errs, err = recursive(u, y)
}
if err != nil {
return nil, nil, err
}
return estimates, errs, nil
return theta, errs, nil
}