Skip to content

Instantly share code, notes, and snippets.

@colwem
Last active March 29, 2016 00:01
Show Gist options
  • Save colwem/ecb16368b97fa9477158 to your computer and use it in GitHub Desktop.
Save colwem/ecb16368b97fa9477158 to your computer and use it in GitHub Desktop.

We have two events A and B. By event I mean it in the temporal sense. They each have a start time and a duration.
A and B cannot occur at the same time. Meaning:

A.starttime + A.duration < B.starttime or B.starttime + B.duration < A.starttime

Now all we know is what the the pdf would be for A.starttime, A.duration, B.starttime, B.duration if the confict constraint didn't exist. But since that constraint does exist how do we find the new pdfs? How do I extend this to n events?

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