Skip to content

Instantly share code, notes, and snippets.

@atuleu
Last active June 18, 2020 09:07
Show Gist options
  • Save atuleu/39e6f6b6fcec3baa963803e7fffbc71f to your computer and use it in GitHub Desktop.
Save atuleu/39e6f6b6fcec3baa963803e7fffbc71f to your computer and use it in GitHub Desktop.
#FortMyrmidon Compute interaction between two time
# One can use fmExperimentOpenReadOnly too if no modification are needed.
e<-fmExperimentOpen("myfile.myrmidon")
# start or end can be POSIXct, fmTime or fmTimeCptr object. But they cannot just be character vector.
interactions <- fmQueryComputeAntInteractions(e,
start = fmTimeParse("2020-02-11T11:53:26.790610Z"),
end = fmTimeParse("2020-02-11T12:53:52.685287Z"),
maximumGap = fmMillisecond(800), # 800ms gap in interaction are allowed
reportTrajectories = FALSE, # you may set true but it will be slower
singleThreaded = FALSE) # you can try true to check performances
# Please check d
@nathaliestroeymeyt
Copy link

Typo:
Should be

e <- fmExperimentOpen("myfile.myrmidon")

("-" is missing after "<")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment