Guest User

Untitled

a guest
May 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. convertEvent :: MHT.Instrument a -> Event
  2. convertEvent (MHT.I_kalmanUpdate x y aRaw bRaw cRaw sRaw) =
  3. Event { eventName = pack "kalmanUpdate"
  4. , eventParams = [ Number (fromIntegral x)
  5. , Number (fromIntegral y)
  6. ]
  7. , eventFmtVersion = pack "1.0"
  8. , eventProvenance = Nothing
  9. }
  10. where
  11. _a = unsafeCoerce aRaw :: Lin.Matrix Double
  12. _b = unsafeCoerce bRaw :: Lin.Matrix Double
  13. _c = unsafeCoerce cRaw :: Lin.Matrix Double
  14. _s = unsafeCoerce sRaw :: Lin.Matrix Double
Add Comment
Please, Sign In to add comment