diff --git a/p2/run.go b/p2/run.go index 8d29f55..986dca4 100644 --- a/p2/run.go +++ b/p2/run.go @@ -35,6 +35,11 @@ func run() error { return err } + mutCorrelationYU, err := stats.MutCorrelate(data[y], data[u], maxShift) + if err != nil { + return err + } + log.Printf("len(data): %d", len(data[u])) log.Printf("means - u: %v, y: %v", meanU, meanY) @@ -45,6 +50,7 @@ func run() error { log.Printf("autocorrelationU: %v", autocorrelationU) log.Printf("autocorrelationY: %v", autocorrelationY) log.Printf("mutual correlation U,Y: %v", mutCorrelationUY) + log.Printf("mutual correlation Y,U: %v", mutCorrelationYU) } return nil