From 49359cc5497aad7cf54060fdfdab4d0b64b2aeaa Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 15 Mar 2023 20:00:51 +0100 Subject: [PATCH] p3(run.go): actually call explicit least squares --- p3/run.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/p3/run.go b/p3/run.go index c7069c5..3be94d9 100644 --- a/p3/run.go +++ b/p3/run.go @@ -54,6 +54,14 @@ func run() error { thetaT := lrls.TransposeTheta(theta) + // explicit method does not return theta and errs directly, instead + // it's computed by a Matlab script and the resulting data is saved in + // `./data`. + _, _, err = lrls.Estimate(0, data[u], data[y]) + if err != nil { + return err + } + log.Printf("len(data): %d", len(data[u])) log.Printf("means - u: %v, y: %v", meanU, meanY)