p3: estimates -> theta
This commit is contained in:
parent
c8a2cfcd17
commit
7bbc50acff
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user