add mutCorrelationUY as well

This commit is contained in:
leo 2023-02-25 14:29:55 +01:00
parent 5694011822
commit e8f8b21f89
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -35,6 +35,11 @@ func run() error {
return err 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("len(data): %d", len(data[u]))
log.Printf("means - u: %v, y: %v", meanU, meanY) log.Printf("means - u: %v, y: %v", meanU, meanY)
@ -45,6 +50,7 @@ func run() error {
log.Printf("autocorrelationU: %v", autocorrelationU) log.Printf("autocorrelationU: %v", autocorrelationU)
log.Printf("autocorrelationY: %v", autocorrelationY) log.Printf("autocorrelationY: %v", autocorrelationY)
log.Printf("mutual correlation U,Y: %v", mutCorrelationUY) log.Printf("mutual correlation U,Y: %v", mutCorrelationUY)
log.Printf("mutual correlation Y,U: %v", mutCorrelationYU)
} }
return nil return nil