p3(lrls): redo how explicit works

This commit is contained in:
leo 2023-03-15 19:57:59 +01:00
parent f3a15203a6
commit 033fdd77a9
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
2 changed files with 4 additions and 4 deletions

@ -30,7 +30,7 @@ func Estimate(eMethod int, u, y []float64) ([][]float64, []float64, error) {
switch method {
case methodExplicit:
theta, errs, err = explicit()
err = explicit()
case methodRecursive:
theta, errs, err = recursive(u, y)

@ -5,15 +5,15 @@ import (
"os/exec"
)
func explicit() ([][]float64, []float64, error) {
func explicit() error {
err := runExplicitMatlab()
if err != nil {
return nil, nil, err
return err
}
// TODO: read data processed and saved by matlab and return that.
return nil, nil, nil
return nil
}
func runExplicitMatlab() error {